Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of an element's events

Is there a way to find all of the events for a element in javascript? or a way to unbind all events from a element?

Thanks.

like image 798
errorhandler Avatar asked Oct 11 '10 21:10

errorhandler


1 Answers

Of course ! Take a look at this to bind/unbind events http://api.jquery.com/category/events/ and use this jQuery code fragment to get all the events bound to an element in the form of a hashset of keypairs "eventname/function delegate"

jQuery(elem).data('events');
like image 96
NinjaCross Avatar answered Sep 28 '22 09:09

NinjaCross