Does the jQuery .unbind() method only work on jQuery created events?

Posted by Roberto Sebestyen on Stack Overflow See other posts from Stack Overflow or by Roberto Sebestyen
Published on 2010-06-01T19:25:45Z Indexed on 2010/06/01 19:33 UTC
Read the original article Hit count: 207

I am trying to unbind all event handlers for all elements that are inside a particular container. Like a DIV. But those events have been bound/registered not using jQuery. Some are bound the manual way with onclick="...." or using regular native JavaScript.

But when i do something like this

$('#TheDivContainer').find('div,td,tr,tbody,table').unbind();

It does not appear to work. Which leads me to believe that the .unbind() only works if the events have been originally bound by jQuery.

Is that true? Is there another way of unbinding all events from a group of elements ?

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery