Trigger action when element is clicked but not when some specific subelements are.
- by Anant
I have a div, containing text and a few links. I want to trigger an onclick event, only if the click occurs anywhere in the div, but not on any of the links.
What would be the best way (performance wise) to implement this using jQuery?
The one I use is
$('#div').click(function(){
});
but it disables all the #div a