Adding delay to mouse out function.
Posted
by Wazdesign
on Stack Overflow
See other posts from Stack Overflow
or by Wazdesign
Published on 2010-05-10T09:21:55Z
Indexed on
2010/05/10
9:24 UTC
Read the original article
Hit count: 251
I have one drop down menu,
<ul>
<li><a>link 1</a>
<ul><li><a>link 1</a></li></ul>
</li>
</ul>
I am using the following JS to use hover and show child menus.
I want to add delay to the mouse out function (when the class of the LI removed) about 500ms,
$('li').hover(function(){
$(this).addClass('over');
}, function(){
$(this).removeClass('over');
});
Please do needful in this.
thanks in advance
© Stack Overflow or respective owner