Skip to main content
January 14, 2010
Question

I am using the Spry Accordion How can I make it so that all panels appear as a default of closed?

  • January 14, 2010
  • 1 reply
  • 550 views

I have gone through the documentation and am unable to find a way to set the default value of the panels to closed. I have looked at the java script file of the spry and have changed some null values to true and some to but this has no effect. I have seen this spry used in other sites and the panels are closed at the on set when the page is called. I would like any help  you could give me thank you.

This topic has been closed for replies.

1 reply

pziecina
Legend
January 14, 2010

Hi

I have answered this in your post the the general section of the forum, but for others looking in this section, here it is again.


At the bottom of your page -

<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { enableAnimation: false, useFixedPanelHeights: false, defaultPanel: -1 });
//-->
</script>

PZ