enable

Changes the enabled state of the widget.

Parameters

enable Boolean

Whether to enable or disable the widget.

    <div data-role="view">
        input
        Disable
    </div>


    <script>
        var app = new kendo.mobile.Application();
        function disable() {
            $("#foo").data("kendoMobileSwitch").enable(false);
        }
    </script>
In this article