posted 16 years ago
If we use following code:
<form action="">
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat" selected="selected">Fiat</option>
<option value="audi">Audi</option>
</select>
</form>
it shows a dropdown box and Flat is selected. if we do not specify selected attribute, then the first option will be selected. in above sample, Volvo is selected.
What I want is a dropbox with a blank shown up. User must select one option and proceed.
I know there must be some simple solution. But I just can not find it.
Thanks for help