Monday, January 21, 2013

jquery get events on element


You can get event listeners attached to a DOM element using:
$._data($(SELECTOR).get(0), "events")
before v1.9 in was also possibe by calling
$(SELECTOR).data("events")
but by no this one is deprecated.

More info on this: http://blog.jquery.com/2011/11/08/building-a-slimmer-jquery/

No comments:

Post a Comment