change

Fires when the state of the widget changes.

More information about the Kendo UI Application for mobile can be found in this article.

Event Data

e.checked Object

The checked state of the widget.

Handle mobile Switch change event

<div id="foo" data-role="view">
  <input id="switch" type="checkbox" data-role="switch" data-change="onChange" />
</div>

<script>
// the content of the document.body is used by default
var app = new kendo.mobile.Application();

function onChange(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(e.checked);//true of false
}
</script>
In this article