Select your favorite fruit:

Click the button to display the text and index of all options in the dropdown list.