How do I stop interrupting parenting events?
If I have...
<div id="parent" onmouseover="doSomething()">
<div id="child" onmouseover="doSomethingElse()">
</div>
</div>
How can I make it so that doSomething () doesn't execute when I hover over a child? I want doSomethingElse () to execute when I hover over the child and I want doSomething () to execute when I hover over the parent.
Whenever I hover over the child, both functions are executed. Any ideas?
Matt
+1
Matt
a source
to share
3 answers