w2tabs.get

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: You can add tabs:

User Comments

comments powered by Disqus