Answers for "click checkbox javascript"

8

dom check a checkbox

document.getElementById("myCheck").checked = true;
Posted by: Guest on March-01-2021
0

oncheck checkbox javascript

<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");
   }
}
Posted by: Guest on June-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language