Why this mouseout will be called when i move out of li instead of ul?

Posted by terry on Stack Overflow See other posts from Stack Overflow or by terry
Published on 2011-11-24T01:44:49Z Indexed on 2011/11/24 1:51 UTC
Read the original article Hit count: 206

Filed under:
|

i want to call mouseout of ul tag, but it looks it will call mouseout as well when i move between two li tags, what's wrong? how can i make it work when i move mouse out of the ul? thanks a lot!

        $(document).ready(function(){
            $("#info").live("mouseout", function(){
                  console.log('mouseout');

            });
        });

HTML

    <div id="latest">
        <ul id="info">
            <li>test1</li>
            <li>test2</li>
        </ul>
    </div>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about mouseout