One of the issues I am facing is with a "sub-menu" that only appears on :hover. Check out the JSFiddle here for reference.
$('.prices').hover(function () {
$('.sub-menu').fadeIn(150);
}, function () {
$('.sub-menu').fadeOut(120);
});
Issue #1 - Whenever I hover over the main menu and try to click on a sub-menu link, it disappears.
Issue #2 - Resolving the first problem may lead to another concern: the sub-menu contains numerous links, so when a user tries to navigate to the last link by drawing a triangle (as seen in the illustration below), the sub-menu disappears again. How can this be avoided?
Note: While I understand that typically the sub-menu should be within an li element, in this case it does not work for what I am trying to achieve. The JSFiddle provided is just a simplified version of the actual scenario.