The selectedIndex property of the HTMLOptionsCollection interface is the numeric index of the first selected element, if any, or −1 if no is selected. Setting this property selects the option at that index and deselects all other options in this collection, while setting it to -1 deselects any currently selected elements. It is exactly equivalent to the selectedIndex property of the HTMLSelectElement that owns this collection.
selectedIndex
MDN Reference