Using tab methods
The tabs widget contains many different methods, which means it has a rich set of behaviors. It also supports the implementation of advanced functionality that allows us to work with it programmatically. Let's take a look at the methods which are listed in the following table:
| 
 Method  | 
 Usage  | 
|---|---|
| 
 
  | 
 Stops any animations or AJAX requests that are currently in progress.  | 
| 
 
  | 
 Add a new tab programmatically, specifying the URL of the tab's content, a label, and optionally its index number as arguments.  | 
| 
 
  | 
 Completely remove the tabs widget.  | 
| 
 
  | 
 Disable a tab based on index number.  | 
| 
 
  | 
 Enable a disabled tab based on index number.  | 
| 
 
  | 
 Return the number of tabs in the widget.  | 
| 
 
  | 
 Reload an AJAX tab's content, specifying the index number of the tab.  | 
| 
 
  | 
 Get or set any property after the widget has been initialized.  | 
| 
 
  | 
 Remove a tab programmatically, specifying the index of the tab to remove.  | 
| 
 
  | 
 Automatically changes the active tab after...  |