showPicker() for <input>Limited availability
The showPicker() method for <input> elements shows the user interface for picking a value. For example, for <input type="date"> it shows the interface for picking a date.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155Edge
12–98Not supported
99+Supportedsince Mar 3, 2022
Current: 154Firefox
1–100Not supported
101+Supportedsince May 31, 2022
Current: 157Safari
1–17.3Not supported
17.4+Supportedsince Mar 5, 2024
Current: 27MobileChrome Android
18–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155Firefox Android
4–100Not supported
101+Supportedsince May 31, 2022
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in 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 ("HTMLInputElement" in globalThis && "showPicker" in HTMLInputElement.prototype) {
// HTMLInputElement.showPicker is available
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLInputElement.showPicker | 99 | 99 | 101 | 16 | 99 | 101 | 16 |
| HTMLInputElement.showPicker.color_input | 99 | 99 | 101 | 16 | 99 | 101 | ✕ |
| HTMLInputElement.showPicker.date_input | 99 | 99 | 101 | 17.4 | 99 | 101 | ✕ |
| HTMLInputElement.showPicker.datetime_local_input | 99 | 99 | 101 | 17.4 | 99 | 101 | ✕ |
| HTMLInputElement.showPicker.file_input | 99 | 99 | 101 | 16 | 99 | 101 | 16 |