When programmer bounded the functionality of the
click
event even before the new content is injected to the DOM. So that
functionality will not be available to the newly added (injected)
dynamic content. To handle this , you need to use jQuery onSo Change your code from
to jQuery on will work for current and future elements. on is avaialbe from jQuery 1.7+ onwards. If you are using a previous version of jQuery, use live So Change code in previous version
|
Friday, October 4, 2013
jQuery not working after AJAX call
Labels:
Jquery
Subscribe to:
Post Comments (Atom)
I was looking for this... It works great
ReplyDeleteThanks alot :)
great
ReplyDelete