Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
}
 
PREVIOUS NEXT
Tagged: #add #checkbox #alert #box #javascript
ADD COMMENT
Topic
Name
7+8 =