I tried to search but not found exact solution.
If a div element has onclick event listener set by jquery than how to get value/function triggered on click in chrome dev tool?
I try in dev tool but it is only showing 'content js min.js:1'.
Please see this image http://myfilestore.tk/net/Capture.PNG?a=so14052013
Looks like what you want is to see the click event handlers registered for an element.
You can use event data to achieve this in the console, though you have to note that it is private method - not documented may get changed in future without any notification
Ex:
var clicks = jQuery._data( jQuery('element')[0] , "events" ).click;
Read this question also
Demo: Fiddle
The jQuery Audit plugin plugin should do the trick. It's not perfect, but it should give you what you want.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.