B...">

How to identify all events added to a div

I am new to jQuery and such js frames . So far i have done so

<div onclick="function()"></div>

But in jQuery we get the element and add the event there. How can I detect all events added to a div?

I have a div whose height is set to the remaining height. Then I can not find a suitable css . I strongly believe that it was made from javascript. I can not find the right code anywhere. I do not know how to debug this.

Any help is greatly appreciated.

+4
source share
1 answer

To answer your question, you can use:

jQuery._data( elem, "events" );

, .

enter image description here

undefined, .

, , , :

$._data($('.class')[0], "events")

, .

jsFiddle


: jQuery ,

+4

All Articles