I've got some troubles with setTimeOut, i want to delay the hide of the submenu, but its not working at all.. :-(
I put the working line inside comments. What i have done wrong?
$('ul.menu').find('li').mouseover(function() {
$(this).children('ul, .mega-menu').css('display','block');
}).mouseout(function() {
setTimeout(this.children('ul, .mega-menu').style.display="none",4000);
/* $(this).children('ul, .mega-menu').css('display','none'); */
});
Thanks for any help or ideas!
setTimeout(this.children('ul, .mega-menu').hide(4000);setTimeout(function(){ this.children('ul, .mega-menu').style.display="none"}, 4000);