WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: required field not being announced in Firefox/NVDA

for

From: Greg Gamble
Date: Oct 13, 2017 12:52PM


This is an example of the code Angela is talking about.

<div class="form-group">
<label for="MainContent_txtUserName" id="MainContent_lblUsername" class="col-sm-3 control-label ">Username</label>
<div class="col-sm-4">
<input name="ctl00$MainContent$txtUserName" type="text" id="MainContent_txtUserName"
class="form-control" required="true" autofocus="true" placeholder="Username"
oninvalid="setCustomValidity(&#39;Username required&#39;)" oninput="setCustomValidity(&#39;&#39;)" />
</div>
</div>



Greg Gamble
p - 360-704-4376