Can I find events bound on an element with jQuery?

I bind two event handlers on this link:

<a href="#" id='elm'>Show Alert</a>

JavaScript:

$(function()
{
  $('#elm').click(_f);
  $('#elm').mouseover(_m);
});

function _f(){alert('clicked');}
function _m(){alert('mouse over');}

Is there any way to get a list of all events bound on an element, in this case on element with id="elm"?

9 Answers
9

Leave a Comment