I have a span that includes an anchor and a span. Example below
<span id="x"><a id="a_in" href="">link</a><span id="x_in">x</span></span>
Now I am attaching a mousenter / mouseleave event on the span with id="x". When I mouse over the the span id="x" it triggers the mousenter / mouseleave that's fine. The problem is when I mouseover the span id="x_1" inside the parent span mouseleave gets triggered.
I want mousenter / mouseleave to be triggered only when I mouseenter or mouseleave the parent.
Any ideas how to avoid this?