jQuery and the mouseover event

Posted by Kingston on Stack Overflow See other posts from Stack Overflow or by Kingston
Published on 2012-09-20T21:20:31Z Indexed on 2012/09/20 21:37 UTC
Read the original article Hit count: 201

Filed under:
|
|

I need to know how to fix this problem. I have a mouseleave event on my list.

jQuery(".list").live("mouseleave", function(event) {

    alert("Boom");

});

But at the same time I have a tooltip displayed over it. This tooltip doesn't belong to this list, it is in other div.

Now, when i move mouse over that div, i get an alert - i left the list.

Please, tell me how i can do that when i move mouse in this tooltip, there will be no action.

I've tried this sentence, but it doesn't work:

if($(event.target).hasClass('name')) alert("D");

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about live