JQuery doesnt work on content loaded into popover using ajax
I have a button that is responsible for displaying a users pending friend
requests on click. When the button is clicked it triggers a popover which
is filled with a feed of pending friend requests using ajax.I got this far
without any problems, but for some reason I cant get any jquery to work on
the ajax/popover content. So I have 2 questions :
Is there some special trick to getting jquery to work on content loaded
using ajax that wasnt there when when the page is initially loaded?
If your loading content into a popover as i am where should I place the
link to the .js file that contains the jquery i would like triggered when
a user presses a button inside the ajax/popover? Does it go in the parent
or the child file that is being loaded via ajax when the friend request
button is pressed?
No comments:
Post a Comment