Possible Duplicate:
test if event handler is bound to an element in jQuery
I have a button with a fairly large script attached to it. I'm binding to this button like so:
$(document).on( "click", '.basketSubmitter' , function(e) {
... stuff
});
I can't pin it down, but sometimes the button looses it's binding = I click all I want and nothing happens. The buttons sitting left and right continue to work fine, so there must be something with the button being unbound somewhere. Script is large, so
Question:
Is there an easy way to list an elements binding or to detect when an element looses bindings in Jquery?
Thank!
This tool will help you to find out the binded events to any DOM element
http://www.sprymedia.co.uk/article/Visual+Event+2
It's good if you want to inspect the dom to find binded 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