jQuery ToggleButton
Invoke the check method of the jwxToggleButton.
by jqwidgets
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">
<input type="button" value="Click me" id='jqxButton' />
JavaScript
$('#jqxButton').jqxToggleButton({
theme: 'energyblue'
});
// Check the Button
$('#jqxButton').jqxToggleButton('check');