Hi, when I do :
$(#my-accordion).accordion('activate', N);
... to open a specific section of the accordion, the behaviour is not as expected. It does not 'activate' that section programmatically (force it to open). It simply toggles the Nth section of the accordion. Why on earth would they call this function 'activate' instead of 'toggle' ?!!!
Is there a way to programmably force a particular section to open. My accordion has collapsed:true. Any help appreciated...
=================
full code (simplified):
//links
$("a.morelink.ethos").click
(
function()
{
loadSection("about");
$('#accordion-about').accordion('option', 'active', 0); //activate simply toggles. don't use it!
return false;
}
);
function loadSection(section)
{
//...blah blah blah
$("#about-div").show();
}
And here is the structure of the panel:
<!-- about -->
<div id="panel-about">
<!-- content area -->
<div class="content about">
<ul id="accordion-about">
<li id="ethos">
<p class="caption"><a href="#">Our core ethos</a></p>
<div>Some content here</div>
</li>
<li id="history">
<p class="caption"><a href="#">Our History</a></p>
<div>Some content here</div>
</li>
<!-- more sections here.... -->
</ul>
</div>
</div>