I'm currently working on constructing a MEGA MENU using jQuery and CSS with the code below:
$(".sub-menu").find('a.amenu').hover(function(){
$(this).parent().find(".sub-menu-panel").show();
}
,function(){
$(this).parent().find(".sub-menu-panel").hide();
}
);
The menu links have a class "sub-menu" and their related panels have a class "sub-menu-panel".
How can I ensure that the panel related to a menu link remains visible when hovering over it? My issue is that when I move my mouse over a panel to click on a sub-link, the panel disappears because the mouse out event is triggered when leaving the main link.