📜  oncheck 复选框 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:48.707000             🧑  作者: Mango

代码示例2
 Checkbox

function handleChange(checkbox) {
    if(checkbox.checked == true){
        document.getElementById("submit").removeAttribute("disabled");
    }else{
        document.getElementById("submit").setAttribute("disabled", "disabled");
   }
}