We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


The HTMLSelectElement.item() method returns the Element corresponding to the HTMLOptionElement whose position in the options list corresponds to the index given in parameter, or null if there are none.

In JavaScript, using the array bracket syntax with an unsigned long, like selectElt[idx] is equivalent to selectElt.namedItem(idx).


var item = collection.item(idx);
var item = collection[idx];


  • idx is an unsigned long.

Return value


  <select id="myFormControl" type="textarea">
    <option id="o1">Opt 1</option>
    <option id="o2">Opt 2</option>
elem1 = document.forms[0]["myFormControl"][1]; // Returns the HTMLOptionElement representing #o2


Specification Status Comment
HTML Living Standard
The definition of 'HTMLSelectElement.item()' in that specification.
Living Standard No change since the latest snapshot, HTML5.
The definition of 'HTMLSelectElement.item()' in that specification.
Recommendation Initial definition, snapshot of HTML Living Standard

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 4.0 (2.0) (Yes) (Yes) ?
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 4.0 (2.0) (Yes) (Yes) ?


See also

Document Tags and Contributors

 Contributors to this page: burnoo, libbymc, fscholz, freaktechnik, teoli
 Last updated by: burnoo,