[jQuery] Simple Checkbox Validation using Form Plugin

[jQuery] Simple Checkbox Validation using Form Plugin


I am using the excellent Form Plugin to handle the ajax processing and
validation of a form on my website.
The validation works in all scenarios except when I try to use a
checkbox. This is the technique I'm using to validate each field right
now:
if (!form.name.value || !form.email.value) {
alert("you need to enter your name and email dude");
});
But if I try to do the same with the checkbox, using this code:
if (!form.disclaimeragree.value) {
alert("you need to agree to our terms dude");
})
And this checkbox code:
<input name="disclaimeragree" class="" type="checkbox" value="Yes">
Then the checkbox does not get validated, and in fact all the other
fields fail to validate, and the form does not get processed by the
plugin either. With the checkbox code taken out the form validates and
processes fine.
I'm at a loss on this one. Any help would be much appreciated.
Thanks!