html dropdown selected

Solutions on MaxInterview for html dropdown selected by the best coders in the world

showing results for - "html dropdown selected"
Alina
11 Oct 2020
1'Audi' will be the first item seleted by default:
2
3<label for="cars">Choose a car:</label>
4
5<select id="cars">
6  <option value="volvo">Volvo</option>
7  <option value="saab">Saab</option>
8  <option value="vw">VW</option>
9  <option value="audi" selected>Audi</option>
10</select>