HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Default Setting
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> Javascript
View previous topic :: View next topic  
Author Message
allensim81



Joined: 03 Jul 2009
Posts: 5

Posted: Fri Jul 03, 2009 1:11 am     Default Setting  

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 :-)
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

Posted: Fri Jul 03, 2009 3:49 am      

Try: Code: <select name="lang" onChange="form.redirect.value='index.html'; form.submit()" >
<option value=0  selected>English</option>
<option value=2>Francais</option>
<option value=3>Castellano</option>
<option value=4>Deutsch</option>
</select>

If you are doing an onChange for different languages, you might want: Code: <form name="jump1" action="select">
<p>
<select name="MyList" OnChange="location.href=jump1.MyList.options[selectedIndex].value">
<option selected>Please Select...</option>
<option value="english.html">English</option>
<option value="francais.html">Francais</option>
<option value="castellano.html">Castellano</option>
<option value="deutsch.html">Deutsch</option>
</select>
</p>
</form>
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group