I have the following:
$("#header .navigation li.menu-item-first a").mouseenter(function() {
$(".sub-nav").css("display", "block");
}).mouseleave(function() {
$(".sub-nav").css("display", "none");
});
I don't want .sub-nav to disappear as soon as the user moves the mouse away.
How would I integrate setTimeout into these?