I have a select list like so:
<select id="drpColours">
<option value="" selected="selected">Choose color</option>
<option value="1">black</option>
<option value="2">BLUE</option>
</select>
I can I set the selected item based on the text item and not the value. So if i pass "Blue" to a function, I want the function to set the 3rd item in the list to be selected.
I am using jquery for this.