Javascript Reference
Categories: SELECT

javascript SELECT namedItem( )

@March 15, 2008, 1:22 a.m.
namedItem( )Firefox/Netscape/NN n/a IE 6 Chrome/Safari/DOM n/a  

namedItem("ID")

  

Returns a single nested option object or collection of nested option objects corresponding to the element matching the parameter string value.

 
Parameters
 
  • The string that contains the same value as the desired element's id attribute.
 
Returned Value

One option object or collection (array) of option objects. If there are no matches to the parameters, the returned value is null.


Powered by Linode.