Possible Duplicate:
Prevent parent container click event from firing when hyperlink clicked
I have
<div onClick="someJScode();">
...
<div></div>
...
</div>
I don’t want someJScode() to be called when the inner div is clicked. How to do this?
$('yourinnerDiv').click(function(e){e.stopPropagation()});This will stop click event bubbling up the DOM.
http://api.jquery.com/event.stopPropagation/
https://developer.mozilla.org/en/docs/DOM/event.stopPropagation