Re: [jQuery] Problem with assigning events to ajax generated content.

2009-12-09 Thread Charlie Griefer
Take a gander at the live() method: http://docs.jquery.com/Events/live On Tue, Dec 8, 2009 at 4:20 PM, Jeff Berry wrote: > I am populating an unordered list with items from an ajax query, after > which I want to attach click events to each list item. Using either load > or $.get I'm able to r

[jQuery] Problem with assigning events to ajax generated content.

2009-12-09 Thread Jeff Berry
I am populating an unordered list with items from an ajax query, after which I want to attach click events to each list item. Using either load or $.get I'm able to retrieve the data and post it to the UL correctly. However, when I then try to immediately retrieve all the list items in that newly