Say you have this div:
<div id="foo">bar</div>
And you do this:
$("#foo").click(someFunction);
somewhere inside your Javascript code.
Once the page has been loaded, is there a way to find out, via firebug or inspect element in Chrome, or anything else, that the click event for #foo
is bound to someFunction
? I.e., find this out without having to look through all your code?
Chrome Developer tools does this.
This will give you a list of event listeners on the object that can be expanded to find their source and the attached function.
Firebug has this information under the DOM tab, but it's less user friendly.