How do you know which exact events are associated with DOM elements?

I feel that I want to do this often, but I can not, because I do not have access to real events.

For example (and this is just an example where I can just look at the API). I tried to see how stackoverflow image downloader works, but when I call $($0).data('events)(or $('form[action="/upload/image"] :submit').data('events')) I get undefined. Is there any other way to look at the actual functions of certain events?

If so, is there also a way to set breakpoints for these events?

EDIT:

Using Visual Event, this is what I see

enter image description here

+2
source share
2 answers

Personally, I use a combination of Firebug and Visual Event .

: - .

: Visual event example

+1

jQuery ( 1.7) s ee .

, :

var events = jQuery._data(element, 'events');
0

All Articles