Web Development with jQuery®

(Elliott) #1

bapp17.indd 02/17/2015 Page 605


Ta b s


TAB METHODS

METHOD DESCRIPTION RETURN VALUE

tabs(options) Makes the selected elements into tabs
(see “Tab Options”).

jQuery

tabs('destroy') Removes the tabs’ functionality
completely from the document.

jQuery

tabs('disable') Disables all tabs. jQuery

tabs('disable', index) Disables a tab by offset index. To
disable multiple tabs, use the option
method to set the disabled option with
an Array of tab indices.

jQuery

tabs('enable') Enables all tabs. jQuery

tabs('enable', index) Enables a tab by offset index. To
enable multiple tabs, use the option
method to set the disabled option with
an Array of tab indices you wish to
remain disabled.

jQuery

tabs('load', index) Loads the content of a tab provided via
AJAX programmatically.

jQuery

tabs('option') Returns an object of key, value pairs
for every set option.

Object

tabs('option',
optionName, value)

Sets the specifi ed option to the
specifi ed value.

jQuery

Q


continues

http://www.it-ebooks.info

Free download pdf