[thelist] How to validate a <select><option>

Wiedersheim, Leo Leo.Wiedersheim at FMR.COM
Mon May 22 11:29:32 2000


Jay,
You are the MAN!
Thanks,
Leo.

> -----Original Message-----
> From:	Turley, Jay [SMTP:jayt@meridinet.com]
> Sent:	Monday, May 22, 2000 11:17 AM
> To:	'thelist@lists.evolt.org'
> Subject:	RE: [thelist] How to validate a <select><option>
> 
> function nullCheck()
> {
>   if
> (document.frm1.selInitiativeStat[document.frm1.selInitiativeStat.selectedI
> nd
> ex].value == "")
>   {
>     alert("Error! Error! Does not compute!");
>     return false;
>   }
> }
> 
> - Jay Turley
>   http://www.weberrific.org
>   Most folks are about as happy as they make up their minds to be. --
> Abraham Lincoln
> 
> > -----Original Message-----
> > From: Wiedersheim, Leo [mailto:Leo.Wiedersheim@fmr.com]
> > Can anyone help me with validating a <select> <option>?  I 
> > ...
> > <form name="frm1" action="initiative_UPDATE_execute.asp" method="POST"
> > onSubmit="return nullCheck()">
> > 
> > 		<select id="selInitiativeStat" name="selInitiativeStat">
> > 		<option id="itvOption"
> > value="<%=Oradatabase.Parameters("var_stat_out").value %>" selected>
> 
> > ***
> > 		<option id="itvOption" value=""> <!--CHECK TO 
> > MAKE SURE THEY
> > DON'T SELECT THIS-->
> > ***
> > 		<option id="itvOption" value="01">Active
> > 		<option id="itvOption" value="02">Inactive
> > 		</select>
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !