Here is a snippet of the code I am using:
I have quite a few different checkboxes (I have a form to submit a fantasy football team) and each group is named by a 2 letter position type - QB, RB, WR, TE, etc.
My problem is if there is only 1 checkbox in the group (I have only 1 TE) then
docLength is returned "undefined". I have tried testing the value of
docLength and changing it to 1 if it is undefined, but for some reason my form just submits even if the rest of the fields aren't validated yet.
I hope this is fairly clear. Please let me know if you need anymore code. Any help would be greatly appreciated!
