Find the index of an option by value.
Value to find
Options array
Index of the option, or -1 if not found
Find the index of an option by value.