I would like to understand more about jQuery and I'm finding one thing I would like to do is to be able to find out what events are attached to elements. Is there some way using the debugger in IE or Firebug that I can find this out. I don't mean by looking at the source code. What I would like to do is to see events in the same way as I can check out CSS properties with firebug.
I would like to understand more about jQuery and I'm finding one thing I would like to do is to be able to find out what events are attached to elements. Is there some way using the debugger in IE or Firebug that I can find this out. I don't mean by looking at the source code. What I would like to do is to see events in the same way as I can check out CSS properties with firebug.
Share Improve this question asked Jan 14, 2012 at 17:25 Samantha J T StarSamantha J T Star 32.9k89 gold badges257 silver badges441 bronze badges3 Answers
Reset to default 6Try FireQuery for FireFox
http://firequery.binaryage./
When you inspect the elements in FireBug, it shows you all of the events attached to the element.
simply execute jQuery('#elem_id').data('events');
in the firebug console
, it will list all the events
bound
to the elements
.
You can see it with Opera Dragonfly too, just inspect the element and go to properties tab on the inspect sidebar: