Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The HTMLSelectElement.showPicker() method displays the browser picker for a select element.
This is the same picker that would normally be displayed when the element is selected, but can be triggered from a button press or other user interaction.
None.
None (undefined).
Thrown if the element is not mutable, meaning that the user cannot modify it and/or that it cannot be automatically prefilled.
NotAllowedError DOMExceptionThrown if not explicitly triggered by a user action such as a touch gesture or mouse click (the picker requires Transient activation).
NotSupportedError DOMExceptionThrown if the element associated with the picker is not being rendered.
SecurityError DOMExceptionThrown if called in a cross-origin iframe.
Transient user activation is required. The user has to interact with the page or a UI element in order for this feature to work.
The method is only allowed to be called in same-origin iframes; an exception is thrown if this is called in a cross-origin iframe.
The code below shows how to check if showPicker() is supported:
This example shows how to use a button to launch the picker for a <select> element with two options.
The code gets the <button> and adds a listener for its click event. The event handler gets the <select> element and calls showPicker() on it.
| HTML # dom-select-showpicker |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Nov 30, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.