Have first one be a blank option. <cfselect name = "cardtype"> <option value = "">Select One <option value = "v">Visa <option value = "m">Master Card </cfselect>
Then in the javascript, you check whether the value is "", and if so, kick out the error: if ... document.forms["thisForm"].cardtype.options[thisSelectionIdx].value == "" carina ----- Original Message ----- From: Mike <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 4:25:26 PM To: <[EMAIL PROTECTED]> Subject: Re: [CFTALKTor] CFSELECT > But when I do that visa is automatically showing, if they don't pay > attention all cards will be visa. > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 04, 2002 3:59 PM > Subject: [CFTALKTor] CFSELECT > > > > > > One way to do it is to not have any blank options. It would look > something > > like this: > > > > <cfselect name = "cardtype"> > > <option value = "v">Visa > > <option value = "m">Master Card > > </cfselect> > > > > Depending on your application, you don't have to list all card types, just > > the ones the company honours. > > > > ************************* > > > > I would like to make a combo box using CFselect, I want to force the > person > > to select one credit card type. > > > > So I made a CFselect box and clicked on required and entered a message. > > But no validation takes place? > > > > Can any tell me how to use this function, I don't necessarily want to > > check the values on the next page, I would like to do on the same page. > > All our browsers here have javascript enabled. > > > > Thanks > > > > Mike > > > > > > - > > You are subscribed to the CFUGToronto CFTALK ListSRV. > > This message has been posted by: [EMAIL PROTECTED] > > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > > This System has been donated by Infopreneur, Inc. > > (http://www.infopreneur.net) > > > > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "Mike" <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: [EMAIL PROTECTED] To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
