Hello,
Is there a way javascript can select an option in a dropdown by giving its value?
example:
in this dropdown:
<select name="choices" size="1">
<option value="choice1">Choice 1</option>
<option value="choice2">Choice 2</option>
<option value="choice3">Choice 3</option>
</select>
I would like javascript to do this:
make an option in the dropdown "choices" selected where the value is = choice2
Thanks



Reply With Quote

Bookmarks