PDA

View Full Version : Default setting



allensim81
05 Jul 2009, 02:50 AM
Hi,
I am trying to solve this for few days, but i cant slove it, so frustrated and nervous. Following is my coding:
<select name="lang" onChange="form.redirect.value='index.html'; form.submit()" >
<option value=0>English</option>
<option value=1>English</option>
<option value=2>Francais</option>
<option value=3>Castellano</option>
<option value=4>Deutsch</option>
</select>

how can i set English as default? yet user can see the Word "English" appear as deafult.
HElp me please..Thanks and appreciate for your help :-)

Wickham
07 Jul 2009, 07:42 AM
Add selected="selected" into one of the options.

This is what I have in one of my forms:-
<option selected="selected" value="Component_1">Component 1</option>

You only have a single number for the value and it isn't in "..." I'm not sure if it will work without the "..."