When called with one argument, enabled(index) returns a boolean result, indicating whether the tab referenced by the provided zero-based index is enabled or not.

Calling the method with two arguments - enabled(index, boolEnable) - will set the enabled state of the referenced tab.

NOTE: When a tab is not enabled, it will not be able to be selected and activated neither with the mouse, nor by the keyboard.

<div id="tabs">
    <div>Tab Pane 1</div> 
    <div>Tab Pane 2</div>

<script type="text/javascript">
    $(function () {

        // disable the second tab
        $("#tabs").swidget().enabled(1, false);