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
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
2 matches
Mail list logo