142
rated 0 times
[
145]
[
3]
/ answers: 1 / hits: 25019
/ 14 Years ago, wed, december 1, 2010, 12:00:00
i have
<select id=x>
<option value=5>hi</option>
<option value=7>hi 2</option>
</select>
I want a javascript function that enables me to select and display the <option>
as default one by id. In other words, I want to do a setOption(5)
and the <option>
with the value 5 to be displayed in the combobox as a default .
Is that possible?
More From » html