Let's say I have the following Code:
<div id="parent">
<div id="child"></div>
</div>
Now I attach an onClick event to the parent div:
$('#parent').click(function() { ... });
Is there an easy way to stop the event from triggering when I click on the child div? I don't want to do something like
$('#child').click(function() { return false; });
because the child div could contain links...
Thanks!