I have a main menu, on mouse over i want to show the submenu
If the mouse is over the main menu or the submenu i want to keep the sub menu and if it goes out of any of these two i want to hide the sub menu.
I wrote a js on the mouseover event of the main menu to show the submenu. But i am unable to hide submenu appropriately. The problem is either just after leaving the main menu the submenu gets hidden or if i write the mouseout function on the submenu, i have to get into the submenu and get out to get the submenu hidden.