Is there any way to see what events are bound to an element with jQuery?
If you are using Safari or Chrome, you can open up the Developer Tools
and inspect the element (by clicking the magnifying glass). In the Event Listeners
tab on the right it will tell you the binded events to that element, with their functions and locations.
OR to do this via code:
$('selector').data('events'); // get
console.dir($('selector').data('events')); // display in firefox firebug or webkit's developer tools
This solution is obsolete in new jQuery versions. You must use:
$._data($('selector')[0],'events')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With