Edit This Code:
See Result »
Apple
Orange
Pineapple
Banana
Click the button to select the option element with index "2".
Note:
The index starts at 0.
Try it
Result: