Hi All,

I'm building a navigation menu that runs vertically, simply put it's 6 options. Each option however has a submenu, which appears using javascript when the main menu item is pressed.

Here's the current state of it:


What I'd love it to do however is as one menu item is clicked, the previous submenu that was open must close, so that no more than one submenu is open at one time. At present you can open all. Can anybody help me with this?

Thanks in advance,