I need to fire an event when the user clicks on an element or anything inside it EXCEPT if he clicks on an <a>
element.
This is what I'm trying now:
$( "div:not(a)" ).click(function(e) {
alert("hello world");
});
You can better understand it here:
How can I do this?