JavaScript » Select » length

Syntax:
object.length

This property contains the number of options in the selection list.

Examples

Code:
document.forms[0].elements[0].length
Explanation:

For example, to refer to the length of the first Select object in the first form of the current document, you could use this code: