Good day!
There is a markup:
<li class="drop-down"><a id="new_menu" href="#">Menu item</a> <ul class="drop-down-ul animated fadeIn"> <li class="flyout-right"><a id="new_menu_sm" href="#">Sub menu 1</a>Еще блок с контентом, выпадающий при hover...</li> <li class="flyout-right"><a href="#">Sub menu 2</a>Еще блок с контентом, выпадающий при hover...</li> <li class="flyout-right"><a href="#">Sub menu 3</a>Еще блок с контентом, выпадающий при hover...</li> </ul> </li> I need to, when hovering over the Menu item, drop a list with a submenu (it works), while it is important that the first item under the menu is open. This requires a hover simulation for id = "new_menu_sm" when id = "new_menu" in the hover state.
There was a thought to do so:
$('#new_menu').hover(function(){ $("#new_menu_sm").mouseenter(); }); But unfortunately, for some reason, it does not work: (
UPD: https://codepen.io/anon/pen/RMEBEa - here the menu on which the code I give does not work. When hovering over Flyout, the item Flyout right must be active. It is important that the hover on Flyout right is active, so that the user understands where the submenu comes from. More importantly, when the user points to a point below, Flyout right ceased to be active. The script that I brought, should do it, but for some reason does not.