jQuery CheckBox

Bind to the indeterminate event by type: jqxCheckBox. Author: http://jqwidgets.com

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">
<div id='jqxCheckBox'>Entertainment</div>

JavaScript

$("#jqxCheckBox").jqxCheckBox({
    width: '300px',
    height: 25,
    theme: 'energyblue',
    checked:null,
    hasThreeStates:true
});

$('#jqxCheckBox').on('indeterminate', function (event) {
    alert("The state is indeterminated")
});