Find the index of the selected option.
Current selected value
Available options
Index of selected option, or -1 if not found
Find the index of the selected option.