Answers for "html input dropdown default selected"

7

select dropdown default value

<select>
  <option value="" selected disabled hidden>Choose here</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
  <option value="4">Four</option>
  <option value="5">Five</option>
</select>
Posted by: Guest on May-03-2020
1

html select default

<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
  	<option value="volvo">Volvo</option>
    <option value="saab" selected>Saab</option>
</select>
Posted by: Guest on March-20-2021

Code answers related to "html input dropdown default selected"

Browse Popular Code Answers by Language