[thelist] JS Form validation - Radio buttons

CDitty mail at redhotsweeps.com
Thu Jun 21 22:20:21 CDT 2001


Can anyone tell me what is wrong with this function?  I cannot get it to 
work correctly.  The function is being called, but the alert box isn't acting.

function query_validator(form){
         if(form.userid.unchecked == false){
                 alert('You must choose a user to process.');
         return(false);
         }
}

Here is the radio button line.
<td bgcolor="#90e4a0"><input type="Radio" name="userid" value="<? echo 
$row[0] ?>"></td>

Thanks.

CDItty





More information about the thelist mailing list