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

<input id="input" ></div>
<script type="text/javascript">
    $(function () {
            enabled: false

    $("#input").swidget().enabled(); // return false
    $("#input").swidget().enabled(true) // enable the widget
    $("#input").swidget().enabled(); // return true