WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Dynamic Dropdown Form Fields

for

From: Stella Mudd
Date: Apr 29, 2012 2:24AM


David,

To get focus to a disabled select after it was enabled from selecting an
appropriate option from the preceding select, and then pressing TAB, I
think you are looking for something like the following:

http://jsfiddle.net/stellamudd/wud7J/

Yes/no?

As Elle pointed out, disabled inputs have some usability concerns. It
helps for visual users if the disabled input has some help text and for
screen reader users if the dropdown that activates the disabled dropdown is
required and proper required notification is given. Then, you have less of
a chance of the following dropdown being missed by screen reader users.
However, there could be a chance your users will not do what you are
expecting, i.e. pressing TAB after a particular form field, which you may
want to consider.

Hope this helps.

- Stella


On Sat, Apr 28, 2012 at 8:48 AM, Tony Olivero < <EMAIL REMOVED> > wrote:

> You should be able to do that. I know it's possible to intercept keystrokes
> with JS. As long as the interception can stop the focus path from traveling
> long enough for your first few actions to take place. Other possibility is
> having an alert that you can move focus to when the focus is lost that says
> "please wait" while your other action are taking place. Kind of another
> "buying time" mechanism.
>
>
>