Answers for "html select selected"

8

get text of selected option jquery

$('#id').children(':selected').text();
Posted by: Guest on March-18-2020
21

html select list

<label for="cars">Choose a car:</label>

<select id="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
Posted by: Guest on April-13-2020

Code answers related to "html select selected"

Browse Popular Code Answers by Language