Results 1 to 2 of 2

Thread: how to modify the accordion attributes on creation

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

    Default how to modify the accordion attributes on creation

    Accordion 1.7

    http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem:

    I am using the accordion script and all is working well
    However, in my form i am dynamically cloning part of the form, which includes an accordion content.

    The problem is the when the div is cloned, the cloned accordion does not work.
    using firefox, i can see the headercontent is set to 0h which where i believe the problem is. How can i change the 0h and 0c when cloning the div

    thanks

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

    Default

    When you say clone, do you mean just the HTML markup of the original accordion content, or the configuration code ddaccordion.init({)} that's required for each instance of an accordion content on your page as well? The first will simply not work, while the 2nd may depending on how you go about it. Either way, we need more info.
    DD Admin

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
  •