Console.log(all jQuery events)

JavaScript – jQuery

Sometimes you just don’t know which of your events are triggered, or whether they are triggered twice because of combined handlers (ie mousedown, click, focusin) And then, setting a million console.log() in your code is just not working.

Try to just put this piece of code at the beginning:

$(document).on("click mousedown mouseup focus blur keydown change focus focusin focusout",function(e){
   console.log(e);
 });

 

It will display all the events on your console as they happen

Beautiful, uh?