That is, i think he means
var xyz=document.formname.selectname.selectedIndex;
if (xyz==-1) {
alert ("hey you!get with the program and fill out the form!");
return false;
}
else return true;
RIDAL Markus wrote:
>
> The only thing that you have to check is if the selectedindex is -1 which
> is the value if no item is selected.
>
> /Markus Ridal
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html