Wijmo UI for the Web
selectedIndex Field
wijmo.accordion.wijaccordion Namespace > options type : selectedIndex Field

Default value: 0

Gets or sets the zero-based index of the accordion pane to show expanded initially.

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijaccordion("option", "selectedIndex");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijaccordion("option", "selectedIndex", newValue);
        
});
var selectedIndex : number;
Remarks
By default, the first pane is expanded. A setting of -1 specifies that no pane is expanded initially, if you also set the requireOpenedPane option to false.
See Also

Reference

options type
wijaccordion jQuery Widget