locked
error message not reading by screenreader on the first time click next RRS feed

  • Question

  • User-944424728 posted

    Hello, I have a next button and a validationsummary.  It works fine in chrome but not in IE.  When I first click "next" button to submit the form in IE, the red message is pop up but not read by screen reader unless I click NEXT the 2nd time.  I tried to add focus using jquery but it still did nothing. Please see below and advise. Thanks.

    <asp:Button ID="btnNext" CommandName="Next" runat="server" CssClass="formbutt" Text="<%$ Resources:Resource, lbtnNext %>" Visible="true" />

    --

    <asp:ValidationSummary ID="valErrorMessages" CssClass="valSummary" runat="server" HeaderText="<%$ Resources: valErrorMessagesHeader %>" role="alert" aria-live="assertive" aria-atomic="true" />

    --

    $(document).ready(function () {
    $("#btnNext").click(function(){
    $("#valErrorMessages").focus();
    });
    });

    Tuesday, May 21, 2019 3:37 PM

All replies

  • User665608656 posted

    Hi aspvbnet,

    According to your description and the code provided, I am not sure which validation control you are using and which control you are validating.

    Could you please post ore details codes about your aspx page?

    If you could post more details information, it will be more easily for us to reproduce the issue and find out the solution
     
     
    Best Regards,

    YongQing.

    Wednesday, May 22, 2019 9:59 AM
  • User-944424728 posted

    thanks. I got the solution.

    Wednesday, May 22, 2019 11:17 AM