← Back to release summary

HTMLSelectElement showPicker()

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 121)
Intent stage
None

WPT details: https://wpt.fyi/results/html/semantics/forms/the-select-element?label=master&label=experimental&aligned&q=show-picker We are able to test the error case behaviors but the actual showing of the picker is not testable using WPT.

Summary

Developers have been asking for a way to programmatically open the option picker of a select element. See https://www.google.com/search?q=programmatically+open+select+site%3Astackoverflow.com This is currently impossible in almost every browser. Providing showPicker() gives developers a supported way to do this. Following the pattern of input.showPicker().

Motivation

Developers have been asking for a way to programmatically open the option picker of a select element. See https://www.google.com/search?q=programmatically+open+select+site%3Astackoverflow.com This is currently impossible in almost every browser. Providing showPicker() gives developers a supported way to do this. Following the pattern of input.showPicker().

Standards & signals

Ecosystem

Samples: https://select-show-picker.glitch.me/

Explainers: https://github.com/whatwg/html/pull/9754

View on chromestatus.com