Finds and returns specified tab.
get(id, [returnIndex])

id | string, id of the tab
returnIndex | boolean, if true returns index in the tabs array (optional)

Returns object or integer or null.

#### Description

The first argument id is the id of the tab object you used when you created tabs. The .tabs array holds all created tab objects. If tab object was not found it will return null.
The second optional argument returnIndex indicates if you want the tab or its index in the .tabs array.
If you have tabs defined in the following way: $('#tabs').w2tabs({ name: 'tabs', active: 'tab1', tabs: [ { id: 'tab1', text: 'Tab 1' }, { id: 'tab2', text: 'Tab 2' }, { id: 'tab3', text: 'Tab 3' }, { id: 'tab4', text: 'Tab 4' } ] }); You can add tabs: console.log( w2ui['tabs'].get('tab5') );