Find out the registered methods for the OnClick event?
I have a simple input element:
<input class="a" /> // <---notice - no inline onclick function someone does
$(".a").on('click',function () {alert('1')}); // ...and later $(".a").on('click',function () {alert('2')}); Now I want to find: "what functions are performed when the element is clicked"?
How can I do this in jquery / javascript?
ps please ignore anonymous functions here, I could also add a regular named function.
(im using (as jsbin shows, with 1.8.3 - the last))
+4