Javascript Select Option Kullanımı. Here are the events dom properties and method associated with select box element. First select the options by javascript selector use value property eg.

Option ivalue to compare the values of option element. Here are the events dom properties and method associated with select box element. Alternatively if you prefer to do it by selectedindex as your variable name suggests you can use the eq method.
The valueproperty of a select box comes from the value attribute of the selected option or the first selected option in a select multipletype select box.
All the examples below use a javascript function output. If no index is specified it inserts the option at the end of the collection. Index returns the strongoptionstrong element from the collection with the specified index starts at 0. The index starts at 0.