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


Jaime1985
10-21-2003, 03:58 AM
OK, I have a form, and unfortunatly every time I visit the site there is something already selcted at the top of the list. This is a pain because I want people in my company to select the value rather than it already being there for them. If it were blank the validation in the CGI script would work.
In brief, all I want to know is how to make the value at the top of the list blank by default, is that possible?
Thanks....if you understand what I'm talking about

s0ms0m
10-21-2003, 06:11 AM
Have you tried adding another option with no values?

requestcode
10-21-2003, 08:42 AM
How about this:
<select name="drop1">
<option selected></option>
<option value="1">Page One</option>
<option value="2">Page Two</option>
<option value="3">Page Three</option>
</select>

Daria
10-21-2003, 11:33 AM
Or put a "suggestion" line in there, such as:
<select name="drop1">
<option selected>Select your page:</option>
<option value="1">Page One</option>
<option value="2">Page Two</option>
<option value="3">Page Three</option>
</select>