I have some elements with a function bound to the click event. I want to bind that same function instead to the mouseover and mouseout eve
click
mouseover
mouseout
Try this:
jQuery('#element').data('events');
You can also do this:
jQuery.each(jQuery('#element').data('events'), function(i, event){ jQuery.each(event, function(i, eventHandler){ console.log("The handler is " + eventHandler.toString() ); }); });