Javascript Reference
Categories: options

javascript options length

@July 1, 2008, 3:26 p.m.
length Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

 

Read-only  

Returns the number of elements in the collection of options.

 
Example
 
var howMany = document.forms[0].mySelect.options.length;
 
Value

Integer.


Powered by Linode.