Here is an example using plain javascript of how can you check:
Body:
<label>
<input id="checkboxcheck" type="checkbox" >checkbox
</label>
<button onclick="Function()">
Check value
</button>
Script:
function Function() {
var variable = document.getElementById("checkboxcheck").checked;
alert(variable);
}
Are you willing to pursue a career in Web Development, here's an opportunity for you Web Development Courses Online training provided by intellipaat!