Hello,
I'm using javacript to detect if checkbox is checked or not, but nothing is working.
If I use getElementById("").checked, doesn't work.
If I use getElementById("").checked == true, doesn't work.
If I user getElementById("").value = 1, doesn't work (because, checked or not, the value is always = 1)
What I'm doing wrong?
This is the code:
Thanks!
I'm using javacript to detect if checkbox is checked or not, but nothing is working.
If I use getElementById("").checked, doesn't work.
If I use getElementById("").checked == true, doesn't work.
If I user getElementById("").value = 1, doesn't work (because, checked or not, the value is always = 1)
What I'm doing wrong?
This is the code:
function confSubmit(form) {
if (document.getElementById("id").checked) {
form.submit();
}
else {
$("#notchecked").toggle('show');
}
}
Thanks!