Checked Switch

The checked state of the Switch depends on the checked configuration option or the checked attribute of the widget element.

The following example demonstrates how to initialize the Switch from a checked input.

<input type="checkbox" id="switch" checked="checked" />

<script>
    var switchInstance = $("#switch").kendoSwitch();
</script>

The following example demonstrates how to initialize a checked Switch by using the jQuery plugin syntax.

<input type="checkbox" id="switch" />

<script>
    var switchInstance = $("#switch").kendoSwitch({
            checked: true
        });
</script>

See Also

In this article
Not finding the help you need? Improve this article