Monday, December 16, 2013

Event Listeners in jQuery 1.8 (and Possibly Later)

To list all the event handlers on a jQuery selector using jQuery 1.8, use this in the JavaScript console:
$._data($('#yourid')[0], "events");
This also works as of the date of this writing on jQuery 1.9, but it might be disabled at some point.

No comments:

Post a Comment