coderef

<select>Baseline · Widely available

The &#x3C;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: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1+Supportedsince Nov 9, 2004
Current: 157
Safari
1+Supportedsince Jun 23, 2003
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157
Safari iOS
1+Supportedsince Jun 29, 2007
Current: 27

How 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.

Show 34 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
HTMLSelectElement.add.index_before_parameter3512893589
HTMLSelectElement.autocomplete6679599.166599.3
HTMLSelectElement.disabled112131841
HTMLSelectElement.form112131841
HTMLSelectElement.item112131841
HTMLSelectElement.labels618565.118565
HTMLSelectElement.length112131841
HTMLSelectElement.multiple112131841
HTMLSelectElement.name112131841
HTMLSelectElement.namedItem112131841
HTMLSelectElement.options112131841
HTMLSelectElement.remove112131841
HTMLSelectElement.required101245.11845
HTMLSelectElement.selectedIndex112131841
HTMLSelectElement.selectedOptions191226625266
HTMLSelectElement.size112131841
HTMLSelectElement.type112131841
HTMLSelectElement.value112131841
optgroup1121≤4184≤3.2
optgroup.disabled11217184✕
optgroup.label1121≤4184≤3.2
option1121≤4184≤3.2
option.disabled1121≤4184≤3.2
option.label1121≤4184≤3.2
option.selected1121≤4184≤3.2
option.value1121≤4184≤3.2
select112111841
select.disabled112131842
select.form112131842
select.hr_in_select11911912217✕14517.4
select.multiple112131842
select.name112131842
select.required101245.11845
select.size112131424✕