View Full Version : Accordion Content script

01-18-2009, 11:36 AM
Hello All,

The Accordion Content script 1.6 works perfectly for me, however I need a bit further modification on it.

at the moment it can handle one header level and content, I need to nest another header within the first header and then content.

e.g. when i click open the title header, it slides out the questions (only), and then when i click open a question, it expand the answer for that question.

title header -
|- Question 1
|- Question 2

Can anyone help please?

01-19-2009, 03:55 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Accordion Content script does support nested levels actually. The key is creating a nested setup is to treat each level of category headers as a new instance of Accordion Content script, and call ddaccordion.init() at each level. Take a look at the 2nd example on this page (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm) to see a 2 level Accordion Menu and how it's set up.

01-19-2009, 09:26 AM
sorry for not following the rule, i'll make sure i do it next time.

thanks for your answer anyway, it's very helpful.

01-26-2009, 12:39 PM
Hello, I'm a tad new here.. well completely, but have been coding for a little while. Although I'm having problems with this very wonderful script. i have been shopping around for text drop downs, and this one best the est I've seen. The problem is, after following all the parameters, my table comes pre-expanded when i open the page preview, as to prepare itself for the show/hide tasks although none are actually open. The project I'm doing is due soon does any one have any suggestions?
******************RESOLVED SORRY!!*************************