Hello,
This is a css of a menu
<span id="menu2">Menu 2</span>
CSS for the above div
#menu2_submenu{
position:absolute; left:375px; top:35px; background-color:#111; height:50px; width:160px; color:#424242;
}
sub menu
<div id="submenu">
<div id="submenu1">submenu1</div>
<div id="submenu2">submenu2</div>
</div>
and the jquery code that goes with the above
$('#menu2').mouseover(function(){
$('#submenu').show();
});
$('#submenu').mouseleave(function(){
$('#submenu').hide();
});
When the mouse is over menu2 $('#submenu').shows, and when the mouse leaves $('#submenu'), $('#submenu').hides. Now this is fine, the issue, is when the mouse leaves menu2 whether the mouse enters submenu or not #menu2 should hide.
I cannot use mouseleave on both #menu2 and #submenu, how do I do it.
Thanks Jean