I have a global function to capture clicks.
$(document).click(function(e){ //do something if(clickedOnLink) //do something });
I want t
Try this
$(document).click(function(e){ //do something if($(this).closest('a').length) //do something });