I know it doesn't make sense.
What I thought would happen is that when the check box is clicked the toggle function simply unchecks it.
Yes, I know , it doesn't make much sense out of context
What I thought would happen is that when the check box is clicked the toggle function simply unchecks it.
Yes, I know , it doesn't make much sense out of context
Code:
<script>
function toggle() {
this.checkbox.checked = "false"
}
</script>
<p>status <input type="checkbox" onchange="toggle()" >