Skip to content

Instantly share code, notes, and snippets.

@alechko
Created June 11, 2013 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alechko/5755089 to your computer and use it in GitHub Desktop.
Save alechko/5755089 to your computer and use it in GitHub Desktop.
Console log clicked event
$(document).click(function(e){
var clickElement = e.target; // get the dom element clicked.
var elementClassName = e.target.className; // get the classname of the element clicked
console.log(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment