Javascript Reference
Categories: options

javascript options namedItem( )

@May 24, 2008, 1:02 p.m.
namedItem( ) Firefox/Netscape/NN 6 IE 6 Chrome/Safari/DOM 1  

namedItem("ID")

  

Returns a single option object 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. If there are no matches to the parameters, the returned value is null.


Powered by Linode.