Addition required: true.
Code examples Initialize an accordion with the active option.
$( ".selector" ).accordion({ active: 2 });
Get or set the active option after init. // getter
var active = $( ".selector" ).accordion( "option", "active" );
//setter
$( ".selector" ).accordion( "option", "active", 2 );
Hope this helps. You can check out http://jqueryui.com/demos/accordion/
source
share