Select length Property
Return the number of <option> elements found in a drop-down list:
The result of x will be:
Try it yourself »
Definition and Usage
The length property returns the number of <option> elements in a drop-down list.
The length property is supported in all major browsers.
|Return Value:||A Number, representing the number of <option> elements found in the drop-down list|
Thank You For Helping Us!
Your message has been sent to W3Schools.