Answers for "how to add checkbox in alert box in javascript"

1

how to add checkbox in alert box in 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 July-19-2021

Code answers related to "how to add checkbox in alert box in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language