The enabled() method, called without any parameters, will return the current enabled state of a Button element.
The enabled(bool) method is used to update a Button's enabled/disabled state. Passing true will enable and false will disable the element.

A working example can be seen in the following location.

<button id="but1" ></button>

<script type="text/javascript">

     $(function () {

    $("#but1").swidget().enabled(); // return true
    $("#but1").swidget().enabled(false) // disable the button
    $("#but1").swidget().enabled(); // return false