View Single Post
Old 01-29-2013, 03:15 PM   PM User | #1
voodazzed
New Coder

 
Join Date: Jan 2013
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
voodazzed is an unknown quantity at this point
Two menus. Two buttons. Need some help

Hello, long time lurker, first time poster here. I need some help with something that's been driving me batty lately (also fairly new to the world of js):

I have two buttons and two menus that are nested inside the same div. What I would like to happen is when one button is clicked the former menu disappears and is replaced with the other menu and the other way around.

The closest example of what I'm talking about are the "About" "Share" and "Add To" buttons on youtube, but I don't really care for the slide animation.
Also I need each button to have an active state.

Whew! This is probably something stupidly easy, but I'm a js newb so I would really appreciate any and all help in this matter
voodazzed is offline   Reply With Quote