Click to See Complete Forum and Search --> : Forms <select tag>


Jaime1985
10-27-2003, 06:14 AM
OK, I sent a message some time back and I got a quite a good responce, thx. But, I didnt explain myself that well.
I have a form where I have a drop down menu, I want the top value to be blank, so that people are forced into scrolling down to choosing the value. the only problem is that a value us there by default and some people may just foget to check it to make sure it is correct. I have a validation done when it is submitted, I want it so that at the top of the list there is no taxt that has value.
If somebody has then answer to this, thanks so much

pyro
10-27-2003, 07:32 AM
<select>
<option value=""></option>
<option value="one">One</option>
<option value="two">Two</option>
</select>Or did you need the actual validation?

Jaime1985
10-27-2003, 08:14 AM
OK, brill! I hope that this works. Basically the validation that happens in the CGI will look for any parts in the form that haven't been filled in. So now hopefully, a blank option will appear at the top with no value. if the blank option has a value, the validation sees it as being entered......which is really really annoying.
THANKS

pyro
10-27-2003, 08:17 AM
Sure thing. Hope it works for you... :)