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?
<div onclick="event.stopPropagation();"
This will stop click event bubbling up the DOM.
https://developer.mozilla.org/en/docs/DOM/event.stopPropagation