The bind () Method

In addition to event methods used in the options of the tabs (options) method, jQuery UI allows us to manage these events using the bind () method. jQuery UI has created different events, listed in Table 2-4.

Table 2-4. jQuery UI events for managing tabs

Event

Function

tabsselect

A tab has been selected (manually or by the tabs ("select") method).

tabsshow

The contents of a tab became visible (manually, when displaying the first selected tab, or by calling a method like tabs ("select")).

tabsadd

A tab was added (by the tabs ("add") method).

tabsremove

A tab has been removed (by the tabs ("remove") method).

tabsenable

A tab has been activated (by the method tabs ("enable") tabs).

tabsdisable

A tab has been disabled (by the tabs ("disable") method).

tabsload

The contents of a tab have been loaded by Ajax (by the tabs ("load") method).

These events allow you to perform treatments using the callback method provided by the bind (eventName, callback).

Get jQuery UI now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.