Javascript Reference
Categories: SELECT

javascript SELECT Description

@March 15, 2008, 1:22 a.m.
selectFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

  

The select object reflects the select element. This element is a form control that contains option elements. Note that the innerHTML and innerText properties are not available on the Macintosh version of Internet Explorer 4. The shared disabled property is available for Netscape 6.

 
HTML Equivalent
 
<select>
 
Object Model Reference
 
[window.]document.formName.selectName
[window.]document.forms[i].elements[i]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
dataFlddataSrcformlengthmultiplename
options[ ]selectedIndexsizetypevalue
 
Object-Specific Methods
 
add( )item( )namedItem( )remove( )
 
Object-Specific Event Handler Properties
 
HandlerFirefox/Netscape/NNIEChrome/Safari/DOM
onblur24n/a
onchange24n/a
onfocus24n/a

Powered by Linode.