What happens to jQuery handlers when the HTML elements are removed?
Hi all, if I have installed some handlers, say click, focus, etc, and later, I remove the associated elements by doing .html("").
Now,
Q1: What happens to those handlers? Are they cleaned up automatically?
Q2: If Q1 is no, then if I recreate the elements with the same ID (or class that matches the original selector), would the old handlers still be associated with the elements?
I guess ultimately, what is the proper way of removing HTML elements? .remove() or .html("").
Thanks a lot!
Charles