jquery live event gets executed twice

Posted by victor_foster on Stack Overflow See other posts from Stack Overflow or by victor_foster
Published on 2010-04-13T09:58:07Z Indexed on 2010/04/13 10:03 UTC
Read the original article Hit count: 361

Filed under:
|

I am loading content into a page with ajax that will have live click events attached to them. It seems like the first time I load this content everything works as expected. If I load this again, the events fire twice (when put breakpoints in the code). What am I doing wrong? Is there a way I can clear the dom of these elements before they get loaded again?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-live