Created
November 17, 2012 05:19
-
-
Save anasnakawa/4093502 to your computer and use it in GitHub Desktop.
plugin methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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