A pirate walks into a bar with a steering wheel hanging from his pants zipper. The bartender asks, "isn't hard to walk around with that?" The pirate replies, "arrrr, it's driving me nuts."
This is driving me nuts too. How do I determine if a checkbox has been checked?
This is the Form HTML that is generated:
<input value="Yes" title="" class="radio" id="check00" name="check0[]" type="checkbox" />
This is the Form JavaScript that I wrote that does not work:
alert(document.ChronoContact_MyForm.check0[0].checked);
This is driving me nuts too. How do I determine if a checkbox has been checked?
This is the Form HTML that is generated:
<input value="Yes" title="" class="radio" id="check00" name="check0[]" type="checkbox" />
This is the Form JavaScript that I wrote that does not work:
alert(document.ChronoContact_MyForm.check0[0].checked);
Hi msm_portata,
Assuming that MooTools is loaded I'd use
Bob
Assuming that MooTools is loaded I'd use
if ( $('check00').checked ) {
alert("It's checked");
}Bob
It works
Thanks!
Thanks!
This topic is locked and no more replies can be posted.
