Jquery show div on hover then when user hovers out of div hide it help?

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-06-10T20:41:24Z Indexed on 2010/06/10 20:53 UTC
Read the original article Hit count: 156

Filed under:
|

I have a menu and when I hover one of the links a div shows. I want the user to be able to hover over this div but when the user hovers out of the div (mouseout i think its called) I want it to hide.

Imagine a dropdown menu in css, the user hovers over the link and the sub nav is shown, when the user hovers out or away from the link and sub nav the sub nav dissapears. How can this be done with jquery???

this is what I have:

 $(document).ready(function(){
 //when user hovers over plans the mainnavbottom is shown
$(".plans").hover(
    function() {
    $(".mainnavbottom").show("fast");
  }, function(){
    $(".mainnavbottom").mouseout.hide("slow");
  });


 });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about navigation