Select length Property
Select object
Definition and Usage
The length property returns the number of options in the drop-down list.
Syntax
selectObject.length=
number
Browser support





All major browsers support the length property.
Example
Example
Display the number of options in the drop-down list:
Try it »
Select object