This FAQ entry should help:

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


- Richard

On 9/26/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote:
>
>
> i have:
> $("a.delete").click(function() { alert("test") });
>
> after i fetch some json data and append new html:
> // on json load
> $("div.items).append("<a href='#' class='delete'>test</a>");
>
> click events on items inserted after json data is loaded are not
> working, how can i tell jquery to inspect DOM again and attach actions
> on new elements?
>
> Aljosa
>
>

Reply via email to