On 8/8/07, Adam <[EMAIL PROTECTED]> wrote:
>
>
> // When a delete link clicked, remove that list item from list
> $("a.deleteProperty",$("#propertyList li")).click(function()
> {
>   $(this.parentNode).remove();
> } );


This code runs once and attaches the click handler above to the existing
a.deleteProperty elements. The new DOM elements you're adding never get this
event binding. Check this FAQ entry for more info and two possible
solutions:

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

- Richard

Reply via email to