Last Update: 22-Jul-2011
Today when I was building a web application interface, I was trying to use jQuery UI Accordion, but I didn’t want it to open one tab at a time, I just wanted each accordion tab to toggle between open and close states while pressing it, so I can have more than one tab opened, what I wanted was not a feature of jQuery UI’s Accordion, so I tried to look up over the internet if I can find any suitable solution, but could not find anything, so I decided to make the plugin myself,
it works the same way original jQuery UI Accordion do, below you can find the markup and script required to run this plugin,also you can download a working example along with the plugin from my google code profile
Markup
Script
UPDATE:
you have the option to choose which tabs by default will be opened by passing either a number or array of desired open tabs to active option as follows:
UPDATE:
Events
Methods
v.1.5: change log
- using jQuery UI widget framework
- fixed: browser goes to the top on tab click
- fixed: events binding repeated when calling plugin more than once
- enhancement: adding click, tabShown, tabHidden, and init event bindings
- enhancement: adding show all & hide all tabs
you can download the source file and an example from google code here
also you are welcome to make any contribution
follow me on:
awesome icons by WPZOOM






