aria-checked attribute | ariaChecked property
Sets or retrieves the checked state of this element.
![]() |
Syntax
| HTML |
|---|
<element aria-checked="p" ... > |
| JavaScript |
|---|
object.setAttribute("aria-checked",value);var value = object.getAttribute("aria-checked");
|
Property values
Type: String
The checked state.
-
The element is selected.
-
The element is not selected.
-
The element indicates both selected and unselected states.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
| Used in Roles |
|
|---|
This property indicates whether a user has chosen any items.
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). See also
Show:
