Tabbing Demo

onMouse Over

Information Technology Tab

Manufacturing Tab

Services Tab

onClick: Second Tab selected by default

Tab1 Container

Tab2 Container

Tab3 Container

Tab2 Container

Tab3 Container

Disabled specific tab (Tab4 is disabled)

Tab1 Container

Tab2 Container

Tab3 Container

Tab2 Container

Tab3 Container

Tabs Widget parameters

Events

onClick

Options

active Type: Integer

Default: 0
Which panel is currently open.
  • Integer: The zero-based index of the panel that is active (open). A negative value selects panels going backward from the last panel.
Code examples:

Initialize the tabs with the active option specified:

1
$( ".selector" ).tabs({ active: 1 });

disabledType: Integer or Array

Default: false
Which tabs are disabled.
  • Array: An array containing the zero-based indexes of the tabs that should be disabled, e.g., [ 0, 2 ] would disable the first and third tab.
Code examples:

Initialize the tabs with the disabled option specified:

1
$( ".selector" ).tabs({ disabled: [ 0, 2 ] });

openEventType: String

Default: "click"
The type of event that the tabs should react to in order to activate the tab. To activate on hover, use "mouseover".
Code examples:

Initialize the tabs with the openEvent option specified:

1
$( ".selector" ).tabs({ openEvent: "mouseover" });

heightStyle (pending)Type: String

Default: "content"
Controls the height of the tabs widget and each panel. Possible values:
  • "auto": All panels will be set to the height of the tallest panel.
  • "fill": Expand to the available height based on the tabs' parent height.
  • "content": Each panel will be only as tall as its content.
Code examples:

Initialize the tabs with the heightStyle option specified:

1
$( ".selector" ).tabs({ heightStyle: "fill" });