MinnRick
asked on
jQuery Methods Not Active Against Dynamically Created Content?
Hello Experts -
I have an ASP.NET page into which I am injecting some jQuery-sourced HTML. The content is getting created by the top-most code inside the $(document).ready block in the page's header. I have some additional jQuery functions coded further down in the $(document).ready block but none of the injected content appears to respond to those functions. Is there a reason for this and how (if it's possible) can I code the solution so that the new HTML responds to my jQuery functions? Thanks.
-- Rick
I have an ASP.NET page into which I am injecting some jQuery-sourced HTML. The content is getting created by the top-most code inside the $(document).ready block in the page's header. I have some additional jQuery functions coded further down in the $(document).ready block but none of the injected content appears to respond to those functions. Is there a reason for this and how (if it's possible) can I code the solution so that the new HTML responds to my jQuery functions? Thanks.
-- Rick
Post your code
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! live() did work but, curiously, when I took a look at the jQuery api documentation it said that live() has been deprecated (as of 1.7 - I'm using 1.7.1) in favor of on(). I tried on() and it stopped working. Maddening.