set default value select javascript code example Example: select default value <option selected> 5 </option>