jQuery SwitchButton
Set the onLabel property of the jqxSwitchButton. Author: http://jqwidgets.com
by mogador
HTML
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="jqxLoader">
</div>
<button id="openLoader">
Open loader</button>
JavaScript
$('#jqxLoader').jqxLoader({ theme: 'energyblue', width: 200, height: 150 });
$('#openLoader').jqxButton({ theme: 'energyblue' });
$('#openLoader').click(function () {
$('#jqxLoader').jqxLoader('close');
$('#jqxLoader').jqxLoader('open');
alert("toto");
});