Enhancing jQuery’s Hide Function For Greater Accessibility
Tweet
Yesterday I read an article by Aaron Gustafson on A List Apart regarding hiding elements with JavaScript and the accessibility implications depending on the technique used. As mentioned by Aaron the common way this is done in libraries, including jQuery, is by manipulating the display property.
In the article Aaron discusses five ways to hide content and what the accessibility effect is of each of these. Out of the five there is only one that passes the accessibility checklist and that is:
position:absolute;
left:-99999em;
With …
