I can't seem to find any resources or code examples with which I can get screen readers to work (using wai aria) with jquery when pasting html into dom or adding html to dom.
Can someone point me to some useful resources that I can use as a guide, or provide some code examples that I can use to develop my application to meet accessibility standards with dynamic content being added to my page back?
TIA.
Edit (added code that cannot be read by NVDA) ... what am I missing?
<html> <head> <script language="javascript" type="text/javascript"> function addText() { document.getElementById("test").innerHTML = "some test"; } </script> </head> <body> <h2>NVDA</h2> <div id="testarea">Some test area</div> <div id="test" aria-describedby="testarea" aria-live="polite" aria-relevant="additions removals" role="region"></div><br /> <input type="button" value="click me" onclick="addText()" /> </body> </html>
jquery ajax accessibility wai-aria wai
Christopher johnson
source share