aria-checked attribute | ariaChecked property
[This documentation is preliminary and is subject to change.]
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.
(true)
-
The element is selected.
(false)
-
The element is not selected.
(mixed)
-
The element indicates both selected and unselected states.
Remarks
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
Build date: 2/13/2012
