The following displays a menu:
<a href="#" id="cityclick">ONZE WAARDEN</a>
<div id="citydrop">
<div class="dropbottom">
<div class="dropmid">
<ul>
<li><a href="#">FAQ</a>
</li>
<li><a href="#">ITC</a>
</li>
<li><a href="#">CLUB</a>
</li>
<li><a href="#">CULTUUR</a>
</li>
<li><a href="#">ROBITICA</a>
</li>
</ul>
</div>
</div>
</div>
The jQuery for is as follows :
$("#citydrop").hide();
$("#cityclick").mouseover(function () {
$("#citydrop").slideDown('slow');
});
$("#citydrop").mouseleave(function () {
$("#citydrop").slideUp('slow');
});
PROBLEM: I'm not able to figure out how to toggle the submenu "citydrop" when the mouse leaves "cityclick" but does not enter "citydrop" yet.
I tried out here jsfiddle
Is this what you are trying to do?
HTML
Javascript
i think this might help..
hover plugin includes both mouseenter and mouseleave follwing code works fine for me
javascript:
Use some wrapper on your html, and then call
mouseleave
event on it, like there: http://jsfiddle.net/9yEHV/11/And wrapper: