How do I programmatically select a text item (not the value) of a html dropdown list?
I know this works for the value:
document.Combo1.value = "Breaker"
but I have a dropdown list that looks like this:
and I want to select the code (100-2100) in the list instead of the value ("Breaker").
Thanks.
I know this works for the value:
document.Combo1.value = "Breaker"
but I have a dropdown list that looks like this:
Code:
<option value="Breaker">100-2100</option>
<option value="Compressor">100-2155</option>
<option value="Drill">100-2240</option>
<option value="Drill">100-2242</option>
and I want to select the code (100-2100) in the list instead of the value ("Breaker").
Thanks.