Does jQuery automatically remove attached even handlers from objects when I remove them?

Ok, my interest is, does jQuery remove attached event handlers from the DOM object and all of its descendants (if they also attached event handlers) if I just remove that DOM object with jQuery('.selector').remove()

?

+2


source to share


1 answer


jQuery docs : "Note that this function, starting in 1.2.2, will also remove all event handlers and internally cached data."



+2


source







All Articles