WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Error alert and edit field focus

for

From: Jared Smith
Date: Jun 11, 2020 8:33AM


Yes, give the field aria-invalid="true" and aria-describedby that
references the descriptive error message, then set focus to the field
with JavaScript.

The potential difficulty with this approach is that if there are
multiple errors the user may not be aware of these unless they
subsequently navigate to them.

Jared