My goal is to create a submenu that opens with a jQuery "fold" effect. The issue arises when a user hovers too quickly, causing the menu to stay open. How can I prevent this from happening? Below is my current jQuery code:
$('ul.mainmenu li').hover(
function() {
$(this).children('ul').show('fold', 570);
}, function() {
$(this).children('ul').hide('fold', 500);
}
);
You can view my JsFiddle demonstration at: http://jsfiddle.net/9wkBf/