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();
});
});