JavaScript SwitchButton
Bind to the unchecked event by type: jqxSwitchButton. Author: http://jqwidgets.com
by jqwidgets
HTML
<script src=" http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="jqxSwitchButton"></div>
JavaScript
$('#jqxSwitchButton').jqxSwitchButton({
height: 35,
theme: 'energyblue',
width: 80,
checked:true
});
$('#jqxSwitchButton').bind('unchecked', function (event) {
alert("You unchecked the button");
});