change when checked is changed in js code example
Example: oncheck event jquery
$(".checkbox").change(function() {
if(this.checked) {
//Do stuff
}
});
$(".checkbox").change(function() {
if(this.checked) {
//Do stuff
}
});