detect if event is launched in children of certain parent
I have something like that
-
<li>My menu item
-
<ul>
-
<li>my submenu item</i>
-
<li>my submenu item</i>
-
<li>my submenu item</i>
-
</ul>
- </li>
The problem is that when the mouse goes from the main <li> to the children <li> a mouseout event is generated from the main li.
My idea is that if I can detect that the the mouseout is happening at a child of my main <li> then I should be able to stop the handler with an "if" or something.
So how would I do that?
TIA