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

<input id="colorpicker" type="color" ></div>

<script type="text/javascript">
    $(function () {
            value: "#f23210"

    $("#colorpicker").swidget().enabled(); // return false

    $("#colorpicker").swidget().enabled(true) // enable the widget

    $("#colorpicker").swidget().enabled(); // return true