Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

select option default value

      <select defaultValue={'DEFAULT'} >
        <option value="DEFAULT" disabled>Choose a salutation ...</option>
        <option value="1">Mr</option>
        <option value="2">Mrs</option>
        <option value="3">Ms</option>
        <option value="4">Miss</option>
        <option value="5">Dr</option>
      </select>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #option #default
ADD COMMENT
Topic
Name
5+1 =