jquery-accordion
jquery-accordion copied to clipboard
Initialization of opened branch of multilevel list
Hi, Thank you for this smart script for accordion. I tried to implement it with opened only one defined branch of closed tree - by class="accordion open" defined in parent elements (in demo) - and there is some problem with calculating height. It seems that script calculate only height of first parent element and ignore others inside.
<section id="only-one" data-accordion-group> <section class="accordion open" data-accordion> <button data-control>Accordion 1</button> <div data-content> <article>Item</article> <article class="accordion open" data-accordion> <button data-control>2nd Level</button>

I tried to figure out and but withou success.
Does anybody have any idea?
+1
Need to check why this is not happening on the demo. Can you provide sample code @martinb2 ?
Any movement on this one? I am running into the same problem. Set the class to have open but content height is not being calculated properly. Still shows the accordion closed.