|
[SOLVED] How to make an expand / collapse menu
Hi,
Am looking for some help (as always!).
I am wanting to create the following
Menu Title 1
- Sub item 1
- Sub item 2
- Sub item 3
- Sub item 4
Menu Title 2
- Sub item 1
- Sub item 2
- Sub item 3
- Sub item 4
Menu Title 3
etc
I would like to have it so the sub items are collapsed on page load. Then when someone clicks on 'Menu Title 1', it shows the sub items for that section. Then if someone clicks on 'Menu Title 2' it collapses the previous sub items, and displays the sub items for menu 2.
Etc
Does someone have some coding I could use - or point me in the direction of a tutorial?
I would be very grateful!
Many thanks
Ben
|