Triggered when the state of the checkbox is changed
Parameters
| Name | Type | Description |
|---|---|---|
| e | {object} | event data |
| state | {string} | the data of the checkbox |
Examples
sample
<input type="checkbox" id="checkbox"/>
<script>
var chkb = $('#checkbox').checkbox({
change: function (e) {
alert('State: ' + chkb.state());
}
});
</script>