Results 1 to 2 of 2

Thread: Default setting

  1. #1
    Join Date
    Jul 2009
    Posts
    1

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

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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 "..."
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •