最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I find out what events are attached to HTML elements? - Stack Overflow

programmeradmin3浏览0评论

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 badges
Add a ment  | 

3 Answers 3

Reset to default 6

Try 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:

发布评论

评论列表(0)

  1. 暂无评论