Edit This Code:
See Result »
Cat
Dog
Horse
Elephant
Mouse
Fish
Cow
Click the button to return the number of visible options in the dropdown list.
Try it
Result: