HTMLSelectElement.SelectedIndex

HTMLSelectElement.SelectedIndex property

The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.

public int SelectedIndex { get; set; }

See Also