...

View Full Version : default form option value...



JJohnsenDK
08-08-2007, 09:52 PM
Hey

Is it possible to set a default value for a form option like this:

<form>
<select>
<option>Blue</option>
<option>Red</option>
<option>Yellow</option>
<option>Green</option>
</select>
</form>

Normally blue would come first. Now my quesstion is can i get yellow to come first? Without moving it over blue in the code.

Arbitrator
08-08-2007, 10:01 PM
<option selected="selected">Yellow</option>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum