Results 1 to 3 of 3

Thread: Accordion Content

  1. #1
    Join Date
    Feb 2008
    Location
    Native and current resident of beautiful, quiet and clean Montana.
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Content

    1) Script Title:
    Accordion Content script (v1.5.1)

    2) Script URL (on DD):
    Right over here

    3) Describe problem:
    The script is functioning properly in all manners except for one. I cannot seem to figure out how to ensure the top item/content is the one expanded when the page is first loaded. It always seems to open with the second item expanded. I've looked through the script and whatnot and can see where it says:
    defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
    ...but no matter what I try I can't get it to work. Does anyone know how to dictate which tab is expanded by default?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Turn off persistence in the config code, then set the 1st content to be expanded by default:

    Code:
    defaultexpanded: [0],
    DD Admin

  3. #3
    Join Date
    Feb 2008
    Location
    Native and current resident of beautiful, quiet and clean Montana.
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Works perfectly, thanks so much for your help!

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
  •