<select>Baseline · Widely available
The <select> element provides a menu of options for a user to pick from, typically rendered as a dropdown list.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.
Browser support
DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1+Supportedsince Nov 9, 2004
Current: 157Safari
1+Supportedsince Jun 23, 2003
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157Safari iOS
1+Supportedsince Jun 29, 2007
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: HTMLOptGroupElement.
Feature detection
JS · check before using
const el = document.createElement("select");
if (!(el instanceof HTMLUnknownElement)) {
// <select> is supported
}Sub-features
Support for each part of the feature (54). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLOptGroupElement | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptGroupElement.disabled | 1 | 12 | 1 | 7 | 18 | 4 | ✕ |
| HTMLOptGroupElement.label | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement | 1 | 12 | 1 | 1.2 | 18 | 4 | 1 |
| HTMLOptionElement.Option | 1 | 12 | 1 | 1.2 | 18 | 4 | 1 |
| HTMLOptionElement.defaultSelected | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.disabled | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.form | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.index | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.label | 1 | 12 | 7 | 3 | 18 | 7 | 1 |
| HTMLOptionElement.selected | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.text | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionElement.value | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionsCollection | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionsCollection.add | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionsCollection.length | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLOptionsCollection.remove | 1 | 12 | 4 | 3.1 | 18 | 4 | 1 |
| HTMLOptionsCollection.selectedIndex | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement | 1 | 12 | 1 | 1 | 18 | 4 | 1 |
| HTMLSelectElement.add | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
Show 34 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLSelectElement.add.index_before_parameter | 35 | 12 | 8 | 9 | 35 | 8 | 9 |
| HTMLSelectElement.autocomplete | 66 | 79 | 59 | 9.1 | 66 | 59 | 9.3 |
| HTMLSelectElement.disabled | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.form | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.item | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.labels | 6 | 18 | 56 | 5.1 | 18 | 56 | 5 |
| HTMLSelectElement.length | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.multiple | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.name | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.namedItem | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.options | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.remove | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.required | 10 | 12 | 4 | 5.1 | 18 | 4 | 5 |
| HTMLSelectElement.selectedIndex | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.selectedOptions | 19 | 12 | 26 | 6 | 25 | 26 | 6 |
| HTMLSelectElement.size | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.type | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| HTMLSelectElement.value | 1 | 12 | 1 | 3 | 18 | 4 | 1 |
| optgroup | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| optgroup.disabled | 1 | 12 | 1 | 7 | 18 | 4 | ✕ |
| optgroup.label | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| option | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| option.disabled | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| option.label | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| option.selected | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| option.value | 1 | 12 | 1 | ≤4 | 18 | 4 | ≤3.2 |
| select | 1 | 12 | 1 | 1 | 18 | 4 | 1 |
| select.disabled | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| select.form | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| select.hr_in_select | 119 | 119 | 122 | 17 | ✕ | 145 | 17.4 |
| select.multiple | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| select.name | 1 | 12 | 1 | 3 | 18 | 4 | 2 |
| select.required | 10 | 12 | 4 | 5.1 | 18 | 4 | 5 |
| select.size | 1 | 12 | 1 | 3 | 142 | 4 | ✕ |