Home >Web Front-end >JS Tutorial >JavaScript gets and sets CheckBox status
Note: For the case of a single checkbox!
[javascript]
var obj = document.getElementById("tt");
var value = obj.checked;
alert(value);//If checked, return true, otherwise return false
obj.checked = false ;//Set the checkbox to unchecked