detect if event is launched in children of certain parent

detect if event is launched in children of certain parent

I have something like that

  1. <li>My menu item
  2.       <ul>
  3.             <li>my submenu item</i>
  4.             <li>my submenu item</i>
  5.             <li>my submenu item</i>
  6.       </ul>
  7. </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
    • Topic Participants

    • yo