On Dec 17, 2007, at 11:56 AM, LeonL wrote:

>
>
> Hi everyone,
>
> I have an event that is not being listened and I can't figure out why.
>
> The thing is that everything is working fine while all my html code is
> static, but as soon as I modified it with some data pulled from the  
> db, the
> click() events doesn't trigger the actions any more.

Hi Leon,

This is question comes up a lot. Basically, you've added listeners for  
the click event THEN updated the DOM. You need to either reapply the  
click event AFTER the Ajax call or use the LiveQuery plugin:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F

--dave

Reply via email to