aria-errormessage attribute | arirErrormessage property
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Identifies the element that provides an error message.
Syntax
<element aria-errormessage="..." ... />
Property values
Type: ID reference
Remarks
| Used in Roles |
|
|---|
Aria-errormessage references the ID of another element that contains the error message.
Aria-invalid must be used in conjunction with aria-errormessage.
Examples
<input id="newValue" type="number" aria-errormessage="errorMsg" aria-invalid="true" value="10" > <span id="errorMsg">Error: The number must be less than 5. </span>
Show: