Search code examples
testingaccessibilityscreen-readersjaws-screen-reader

JAWS screen reader should read only error messages


Currently, I am refreshing the page and focusing on error messages so that jaws can read it. But it is reading all the way from error messages till bottom of the page which is default behavior. Is there any way I can restrict JAWS to read only error messages and not all the text below it?


Solution

  • When talking about accessibility, the default behavior is often the best way to do.

    That being said using role=alert seems to be a better way to announce error messages.