Javascript Reference
Categories: plugins

javascript plugins item( )

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

item(index[, subindex]) item(index)

  

Returns a single object or collection of objects corresponding to the item matching the index value (or, optionally, the index and subindex values).

 
Parameters
 
  • When the parameter is a zero-based integer, the returned value is a single element corresponding to the specified item in source code order (nested within the current element). When the parameter is a string (IE only), the returned value is a collection of elements with name properties that match that string.
  • In IE only, if you specify a string value for the first parameter, you can use the second parameter to specify a zero-based index that retrieves the specified element from the collection with name properties that match the first parameter's string value.
 
Returned Value

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


Powered by Linode.