jquery events and ajax

jquery events and ajax

Suppose I have a <div> containing a number of links (<a></a>) and i add an click handler using $( ).click

Suppose at some time the contents of this div is replaced by some other html (eg. by dynamically loading html content).

Do I need to unbind the click event handler on the links?

If so, how is this best (most efficiently) done?