coderef

showPicker() for <select>Limited availability

The showPicker() method for &#x3C;select> elements shows the dropdown menu or other user interface for picking one of the options.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–120Not supported
121+Supportedsince Jan 23, 2024
Current: 155
Edge
12–120Not supported
121+Supportedsince Jan 25, 2024
Current: 154
Firefox
1–121Not supported
122+Supportedsince Jan 23, 2024
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–120Not supported
121+Supportedsince Jan 23, 2024
Current: 155
Firefox Android
4–121Not supported
122+Supportedsince Jan 23, 2024
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: showPicker.

Feature detection

JS · check before using
if ("HTMLSelectElement" in globalThis && "showPicker" in HTMLSelectElement.prototype) {
  // HTMLSelectElement.showPicker is available
}