Results 1 to 1 of 1

Thread: Simple tree - only one list expanded at any time

  1. #1
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple tree - only one list expanded at any time

    1) Script Title: Simple Tree Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

    3) Describe problem:
    Hello everyone - I have just implemented Simple Tree Menu on a site, and it works great. Thanks. However, I wondered what modification I would need to make in order to make the script collapse any nested lists when another parent <li> is clicked ie, so that only one nested list is expanded at any one time.

    I am not a javascript coder so if anyone can help me with this that would be great.

    ALSO: What code could I add that would append the class "active" to the currently open parent <li>?

    Many thanks.
    Last edited by dimfish; 04-18-2007 at 03:24 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •