In Chrome, when I right-click on a DOM element to see which event listeners are connected, it always says jquery.min.js: 2. However, I would like to know which of my JavaScript files this listener contains (for example, a listener click events).
For example, which file has this code?
$('#clickMe').on('click', function(e){ //clicked});
Chrome does not know about this.
When you write $(...).click(function), the event handler that is added to the function is always in jQuery.Chrome cannot know which callback the jQuery event handler will ultimately fire.
$(...).click(function)
addEventListener ( $(...). click()), Chrome Dev Tools , .