1//jQuery listen for checkbox change
2$("#myCheckBoxID").change(function() {
3 if(this.checked) {
4 //I am checked
5 }else{
6 //I'm not checked
7 }
8});
1$('input[type="checkbox"]').change(function() {
2 alert ("The element with id " + this.id + " changed.");
3});