Created
June 11, 2013 07:44
-
-
Save alechko/5755089 to your computer and use it in GitHub Desktop.
Console log clicked event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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