Gets or sets ordinal index of the selected option.

[VBScript]
Public Property SelectedIndex As Integer
[JScript]
public function get SelectedIndex() : int;
public function set SelectedIndex(int);

Property Value

The ordinal index of the selected option, starting from 0.

See Also

HTMLSelectElement Object | HTMLSelectElement Members | DOM Namespace