WebAIM - Web Accessibility In Mind

E-mail List Archives

a11y form use case question

for

From: Schalk Neethling
Date: Oct 22, 2013 7:31AM


Hey there all,

I am curious about an a11y use case regarding forms.

Here is the use case:

~ I have a bunch of form elements that are not initially, visually and
functionally, part of the larger form (although they do exist in the
HTML/DOM) but, is 'activated' on an as needed basis.

Do I simply set these to display:none or should I rather hide them only
visually? Because the fields should not be part of the form until they
are activated, I am leaning towards display:none as I also do not want
these fields to be part of the tab order.

Any thoughts or suggestions? Thanks!

--
Kind Regards
Schalk Neethling
Mozilla