By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

Jquery function call in jquery loaded data

100+
P: 384
I have data being loaded on a page using the jquery .load() function which calls a php script and is working grand. I have pagination added to the data loaded onto the page but no jquery functions work when I click on the pagination in the data that has been loaded.

Does this mean that jquery .click() function wont work on data if that data has been loaded by another jquery function and if so is there a way around this?
Oct 21 '12 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
the click() method requires that the appropriate object already exists when you call it. if you load matching elements later on, the assignment is long past.

afaik, there is a jQuery method (whose name I donít remember, but you should find it in the documentation) that adds event handlers also to elements, even if they are created later.
Oct 21 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.