← Back to release summary

HTMLSelectElement showPicker()

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

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

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

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

View on chromestatus.com