Skip to content

Instantly share code, notes, and snippets.

@anasnakawa
Created November 17, 2012 05:19
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/4093502 to your computer and use it in GitHub Desktop.
Save anasnakawa/4093502 to your computer and use it in GitHub Desktop.
plugin methods
// destroying the plugin and removing all handlers, and styles
$('#multiAccordion').multiAccordion('destroy');
// get an array of active tabs, if no active tabs it will return a one element array with [-1] value
$('#multiAccordion').multiAccordion('getActiveTabs');
// you can use the previous method to get active tabs value, then you can set it later simply by
// retrieve
var activeTabs = $('#multiAccordion').multiAccordion('getActiveTabs');
// set
$('#multiAccordion').multiAccordion('option', 'active', activeTabs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment