37
rated 0 times
[
44]
[
7]
/ answers: 1 / hits: 81774
/ 15 Years ago, sun, may 24, 2009, 12:00:00
HTML Javascript question
to get the selected value of a input-select I can use
<select id=gender name=gender class=style12>
<option selected=selected>ALL</option>
<option>Male Only</option>
<option>Female Only</option>
</select>
document.getElementById('gender').value
is there any easy way for me to get the selected label (i.e. ALL / Male Only / Female Only) with javascript?
Thanks a lot for reading.
More From » html