Tiny Accordion - Open multiple Nested sections?

Hi,

I'm trying to get all the nested sections on my page to open at once, so that I can have a print-friendly version of the page.

I've tried using the following code:

var nestedAccordion=new TINY.accordion.slider("nestedAccordion");
nestedAccordion.init("nested","h3",1,0,"acc-selected");
nestedAccordion.init("nested","h3",1,1,"acc-selected");

This seems to select the first two nested sections (I know this because on page load the first two header sections of the nested sections are darker, like they are when they're open) but only the second nested section is actually open.

Any ideas?

Thanks,

Ash

asked Oct 19, 2011 by anonymous

1 Answer

0 votes

I think you need to have unique id's

 

nestedAccordion.init("nested0","h3",1,0,"acc-selected");
nestedAccordion.init("nested1","h3",1,1,"acc-selected");

 

But i still can't get multiple nesteds to work

answered Nov 10, 2011 by anonymous