Results 1 to 3 of 3

Thread: Accordion conflict between collapseprev and expandall

  1. #1
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion conflict between collapseprev and expandall

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

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem:

    I would like to use this accordion script with:
    collapseprev: true, //Collapse previous content (so only one open at any time). Each time a user clicks on a header the previous one closes so that only one is open at any time.

    But I also need to provide links to "Expand All", "Collapse All".
    <a href="#" onClick="ddaccordion.expandall('mypet'); return false">Expand All</a> | <a href="#" onClick="ddaccordion.collapseall('mypet'); return false">Collapse All</a>

    There is a conflict between the expandall and the collapseprev. When it tries to expandall it cannot because it must close the previous.

    Otherwise this script works great for me. I plan to use it for a section of FAQs. How can I circumvent this conflict?

    Thank you in advance for your help!

    iecwebmast

  2. #2
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you ever find a solution to this problem? I'm looking to do the same thing right now.

  3. #3
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •