I’m trying to set up a click to show menu which has two separate menus.
One menu men should click on, the other, women.
If one is clicked the other should disappear (if it’s visible), if you click off the menu then it should disappear as well. Or if you tap the top level menu link again it should hide the sub-menu as well.
I’ve made it sound more complicated than it is but here’s the code I’ve got thus far:
Note that if you click “men” it shows the sub-menu. Clicking women also shows sub menu and hides the “Men” sub-menu, but if you click back on “Men” it just hides the “Women” and doesn’t show the “Men”…
I’m confused..
Steps
Use this code:
Demo: http://jsfiddle.net/GLZK5/10/