View Full Version : how to modify the accordion attributes on creation

01-24-2010, 12:33 PM
Accordion 1.7


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


01-25-2010, 08:46 AM
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.