[jQuery] Re: Can't get attributes from ajax response...

2009-09-10 Thread Cesar Sanz
Use .live instead of .click - Original Message - From: "James" To: "jQuery (English)" Sent: Tuesday, September 08, 2009 4:07 PM Subject: [jQuery] Re: Can't get attributes from ajax response... When and where are you appending the click() code? If you&#x

[jQuery] Re: Can't get attributes from ajax response...

2009-09-08 Thread James
When and where are you appending the click() code? If you're doing it before the AJAX call, then the click event is not assigned to any new elements. You'll need to use event delegation or the jquery live() function. Otherwise, you'd have to call the click binding again. Another thing to note is