如题所述
var cbox = document.getElementById("checkbox");
cbox.onchange = function(){
var ischecked = this.checked;
if(ischecked){alert("是")}else{alert("否")}
}
cbox.onchange = function(){
var ischecked = this.checked;
if(ischecked){alert("是")}else{alert("否")}
}
温馨提示:答案为网友推荐,仅供参考