This question may be related to a resolved thread.
I found the above thread which helped with getting the accordion script to work, but only for static HTML content such as:
<div id="accordion">
<h3><a href="#">First header</a></h3>
<p> <div>First content</div><br />
</p><h3><a href="#">Second header</a></h3>
<p> <div>Second content</div><br />
</div>How can I apply this to the nested category list so that clicking on a parent category opens it’s child categories in the accordion? The EE display of categories generates the list in nested <ul>
{exp:channel:categories channel="news" style="nested" show_empty="no"}
<h3><a href="http://{path=news/show}">{category_name}</a></h3>
<p> {/exp:channel:categories} and <div>
<h3><a href="#">First header</a></h3>
<p> <div>First content</div>
<h3><a href="#">First header</a></h3>
<p> <div>First content</div>I haven’t been able to find a way to do this even though EE supports the jquery accordion script in the jquery module. I really need help with this.
Thank you!