Wijmo UI for the Web
activate Method
The zero-based index of the accordion pane to activate.
Activates the accordion content pane at the specified index.
Syntax
Javascript (Usage) 
$(function () {
    var value; // Type:  bool
    // Parameters
    var index; // Type:  number
    
    value = $(".selector").wijaccordion("activate", index);
});
Javascript (Specification) 
function activate( 
   index : number
) : bool;

Parameters

index
The zero-based index of the accordion pane to activate.
Remarks
You can use code like in the example below inside your document ready function to activate the specified pane using the click event of a button.
Browser Compatibility
7
5
5

See Also

Reference

wijaccordion type
wijaccordion jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.