jquery mouseout problem

Posted by From.ME.to.YOU on Stack Overflow See other posts from Stack Overflow or by From.ME.to.YOU
Published on 2010-04-04T17:42:56Z Indexed on 2010/04/04 17:53 UTC
Read the original article Hit count: 360

Filed under:
|
|

hello my html

<div id="parent">
<div id="child">cx</div>
</div>

when i use jquery

 $('#parent').mouseout(function(){
//something here
});

i wonder why when my mouse enter the child div the function fires. i'm still inside parent div. i want that mouseout function to fire only when i leave the parent div not when i'm on any child div

http://jsbin.com/esiju/ << example

Cheers

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about mouseout