How do I create an accordion box using JavaScript?

Posted by user105033 on Stack Overflow See other posts from Stack Overflow or by user105033
Published on 2010-03-22T21:19:40Z Indexed on 2010/03/23 7:23 UTC
Read the original article Hit count: 468

Filed under:
|
|

What I want is this:

Start:                        End:
----------------          ----------------
|asdf          |          |              |
----------------          |   stuff      |
                          |              |
                          |              |
                          ----------------
                          |     asdf     |  
                          ----------------

When you click asdf it should end up looking like the End box but the 'stuff' box should appear gradually so it looks like the asdf box is pulling down the stuff menu. When asdf is clicked again it should look like the stuff box is pulling up the asdf box and end at the Start position.

Any tutorials on doing things like this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html