Skip to content

Instantly share code, notes, and snippets.

@anasnakawa
Created November 17, 2012 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anasnakawa/4093498 to your computer and use it in GitHub Desktop.
Save anasnakawa/4093498 to your computer and use it in GitHub Desktop.
plugin initialization options
$(function(){
// this will make the second tab by default opened (index starts from 0)
$('#multiAccordion').multiAccordion({active: 1 });
// [ OR ]
// supports multiple tabs to be opened by default
$('#multiAccordion').multiAccordion({active: [1, 2, 3] });
// show all tabs
$('#multiAccordion').multiAccordion({active: 'all' });
// hide all tabs
$('#multiAccordion').multiAccordion({active: 'none' });
// you can set the options as any jQuery UI plugin using option method
$('#multiAccordion').multiAccordion('option', 'active', 'all');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment