--- url: "https://www.w3.org/WAI/WCAG22/Techniques/html/H84" titulek: "H84: Using a button with a select element to perform an action | WAI | W3C" h1: "Technique H84:Using a button with a select element to perform an action" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 06:28:53" znaku: 3083 slov: 419 kodovani: "utf-8" sha256: "ab544380bff7987fab3e06be21573aa836a4cdadb49472dfc41f6347199ec969" --- # Technique H84:Using a button with a select element to perform an action ## About this Technique This technique relates to [3.2.2 On Input](https://www.w3.org/WAI/WCAG22/Understanding/on-input) (**Sufficient** when used with [G80: Providing a submit button to initiate a change of context](../general/G80)). This technique applies to HTML. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to allow the user to control when an action is performed, rather than having the action occur as a side effect of choosing a value for the `select` element. The user may inspect the different values of the `select` element, or may accidentally choose the wrong value, without causing the action to occur. When the user is satisfied with their choice, they select the button to perform the action. This is particularly important for users who are choosing the value of the `select` element via the keyboard, since navigating through the options of the `select` element changes the value of the control. ## Examples ### Example 1: A calendar A web page lets the user choose a quarter of any year and display the calendar for those months. After the user has set the quarter and year, they display the calendar by pressing the "Show" button. This example relies on client-side scripting to implement the action. ``` ``` ### Example 2: Choosing an action A `select` element contains a list of possible actions. The action is not performed until the user presses the "Update" button. ```
``` ## Related Resources *No endorsement implied.* - [HTML - the `button` element](https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element) . - [HTML - the `select` element](https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element) . ## Tests ### Procedure For each `select` element/button element combination: 1. Check that focus (including keyboard focus) on an option in the `select` element does not result in any actions 2. Check that selecting the button performs the action associated with the current `select` value ### Expected Results - All checks are true. Back to Top