SyntaxFix
Write A Post
Hire A Developer
Questions
I've used the following code a few times and it works sweet:
$("body").click(function(e){ // Check what has been clicked: var target = $(e.target); if(target.is("#target")){ // The target was clicked // Do something... } });