How to set selectedIndex of select element using display text as reference?
Example:
You can use the HTMLOptionsCollection.namedItem() That means that you have to define your select options to have a name attribute and have the value of the displayed text. e.g California