toggle

Toggle the checked state of the widget.

    <div id="foo" data-role="view">
      input
      Toggle
    </div>


    <script>
    var app = new kendo.mobile.Application();

    function onClick() {
      var switchInstance = $("#switch").data("kendoMobileSwitch");
      // toggle the checked state of the switch.
      switchInstance.toggle();
    }
    </script>
In this article