Answers for "how to handle check and uncheck in javascript"

11

javascript check uncheck checkbox

document.getElementById("myCheckBoxID").checked = true; // Check
document.getElementById("myCheckBoxID").checked = false;// Uncheck
Posted by: Guest on August-02-2019
4

how to make checkbox checked in html

<input type="checkbox" checked={props.completed} /> 

#for props completed is true/false , hence if completed is false then checkbox will not be clicked .
# if the checkbox is true it will be will be checked
Posted by: Guest on August-05-2020

Code answers related to "how to handle check and uncheck in javascript"

Browse Popular Code Answers by Language