enable
Changes the enabled state of the widget.
Parameters
enable Boolean
Whether to enable or disable the widget.
Example
<div data-role="view">
<input id="foo" type="checkbox" data-role="switch" />
<a data-role="button" data-click="disable">Disable</a>
</div>
<script>
var app = new kendo.mobile.Application();
function disable() {
$("#foo").data("kendoMobileSwitch").enable(false);
}
</script>