如何判断一个checkbox是否被选中

2025-03-22 05:47:22
推荐回答(1个)
回答(1):

var chk = document.getElementById('复选框ID');if(chk.checked){ // 提交}else{ // 不提交}