Wijmo User Guide > Widgets > Accordion > Accordion How To > Initialize with Multiple Panes Expanded |
Building on the Quick Start example, you can change one option and add a method to initialize your accordion with multiple panes opened.
Multiple Panes Expanded Script |
Copy Code
|
---|---|
<script type="text/javascript"> $(document).ready(function () { $("#accordion").wijaccordion({ header: "h2", expandDirection: "right", selectedIndex: 0, requireOpenedPane: false, }); $("#accordion").wijaccordion("activate", 4); }); </script> |