View Single Post
  #1 (permalink)  
Old Apr 14th, 2008, 11:29
sing2trees sing2trees is offline
Up'n'Coming Member
Join Date: Jan 2006
Location: Belfast
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
[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
Reply With Quote