how to add checkbox in alert box in javascript 1

how to add checkbox in alert box in javascript

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

Here is what the above code is Doing:
1. When the checkbox is checked, the “submit” button is enabled.
2. When the checkbox is unchecked, the “submit” button is disabled.

Similar Posts