Return the number of <option> elements found in a drop-down list:
The result of x will be:
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 |
---|