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.

(true)

The element is selected.

(false)

The element is not selected.

(mixed)

The element indicates both selected and unselected states.

Standards information

Remarks

Used in Roles
option

 

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

Accessible Rich Internet Applications (ARIA)
W3C ARIA-Checked

 

 

Show:
© 2014 Microsoft