Skip to main content
HighWCAG 3.2.2 · Level AUnderstandable

Select Input Triggers Automatic Context Change

Flags <select> elements with onchange handlers that automatically submit forms on option pick.

Rule ID: custom-auto-context-change · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<select onchange="this.form.submit()"><option>1</option></select>

Fixed

<form><select><option>1</option></select><button type="submit">Go</button></form>

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules