Overview

The Switch is a widget that can be in two states: "On" (when value is true) and "Off" (when value is false).

View Demo

The following code adds the Switch to your page.

HTML
<div id="switchContainer"></div>
JavaScript
$(function() {
    $("#switchContainer").dxSwitch({
        value: true
    });
});
See Also