Edit This Code:
See Result »
Apple
Pear
Banana
Orange
Click the button to return the number of option elements in the dropdown list.
Try it
Result: