ariaRequired property
Sets or retrieves the form-completion requirement of this element.
Syntax
object.setAttribute("ariaRequired",value);var value = object.getAttribute("ariaRequired");
Property values
Type: BSTR
The form-completion requirement.
(true)
The element requires user input.
(false)
Default. The element may be left blank.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
Used in Roles | combobox gridcell listbox radiogroup spinbutton textbox tree |
The IHTMLElement5::ariaRequired property indicates which input fields of a form must be filled in before it can be submitted. If the user attempts to submit the form without the required information, you may set IHTMLElement5::ariaInvalid to indicate the error.
Note For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example object.setAttribute("aria-valuenow", newValue)
.