Called when user clicks the tab.
click(id, [event])

id | string, id of the tab
event | object, DOM Event object

Returns undefined.

#### Description

This method is called when user clicks on the tab. It is used internally, but you can use it to emulate clicks. This method emits .onClick event.
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: w2ui['tabs'].click('tab3');