View Single Post
Old 04-09-2004, 11:10 AM  
Coyote
Drinker of Scotch
 
Industry Role:
Join Date: May 2003
Location: Texas
Posts: 242
In your test of form document.forms['itinsearch'], the checkboxes are type "select-one" and will be in a zero-indexed array. You can loop through the array length to check whether any are selected and return the error as needed.

On a side note, it is good practice to always have a default value selected. Especially in this instance, where it is not possible to place an error message next to the offending field, because you will have no idea which field the user intends to select. So, force the user to change from the default selection.
Coyote is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote