Can I find events bound on an element with jQuery?

前端 未结 9 1951
南旧
南旧 2020-11-22 07:11

I bind two event handlers on this link:

Show Alert

JavaScript:

$(         


        
9条回答
  •  旧时难觅i
    2020-11-22 07:46

    I'm adding this for posterity; There's an easier way that doesn't involve writing more JS. Using the amazing firebug addon for firefox,

    1. Right click on the element and select 'Inspect element with Firebug'
    2. In the sidebar panels (shown in the screenshot), navigate to the events tab using the tiny > arrow
    3. The events tab shows the events and corresponding functions for each event
    4. The text next to it shows the function location

提交回复
热议问题