So fügen Sie das Kontrollkästchen in Alarm in JavaScript hinzu

<input type='checkbox' onchange='handleChange(this);'> Checkbox.
function handleChange(checkbox) {
if(checkbox. checked == true){
document. getElementById("submit"). removeAttribute("disabled");
}else{
document. getElementById("submit"). setAttribute("disabled", "disabled");
}
Real Rhinoceros