aria-readonly attribute on <input>

Return to main list

The boolean aria-readonly attribute makes the element not mutable (not changable), meaning the user can not edit the control.

Example with aria-readonly

Example with aria-readonly

Code

<div class="form-group">
  <label for="aaa">Full name</label>
  <input id="aaa" type="text" value="Hello" aria-readonly="true">
</div>

<div class="form-group">
  <label for="bbb">Full name</label>
  <input id="bbb" type="text" value="Hello">
</div>

Assistive technologies

VoiceOver

NVDA

JAWS

Return to main list