In JavaScript, the ariaChecked property of Element reflects the aria-checked attribute, which indicates the current “checked” state of checkboxes, radio buttons, and other widgets that have a checked state (MDN).
Read the notes below before you get or set this property. Prefer feature detection when support is limited.
Syntax
Use el.ariaChecked. Start with this line.
JavaScript
el.ariaChecked
Call
What it does
el.ariaChecked
Primary signature.
Built into the browser. Read or assign el.ariaChecked — no import required.
Handle keyboard. Space and Enter are common for checkboxes.
Prevent scroll on Space. Call preventDefault() when needed.
Compatibility
Browser Support
Element.ariaChecked is Baseline Widely available (MDN: across browsers since October 2023). It is not Deprecated, Experimental, or Non-standard.
✓ Baseline Widely available
Element.ariaChecked
Reflects aria-checked as true, false, mixed, or undefined. Prefer native checkboxes when possible.
BaselineWidely available
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
Android WebViewSupported · Modern WebView
Full support
ariaCheckedBaseline
Bottom line: Safe for modern apps. Use string values, keep custom widgets keyboard-accessible, and prefer native inputs for simple forms.
Frequently Asked Questions
It reflects the aria-checked attribute as a string, indicating the current checked state of checkboxes, radio buttons, and other widgets that have a checked state (MDN).
No. MDN marks Element.ariaChecked as Baseline Widely available (since October 2023). It is not Deprecated, Experimental, or Non-standard.
One of the strings "true", "mixed", "false", or "undefined" (MDN).
Yes when possible. MDN recommends an HTML input with type="checkbox" because it has built-in semantics and does not require ARIA attributes.
A tri-state value for a checkbox or menuitemcheckbox — neither fully checked nor unchecked (for example a parent with some children selected).
Yes. Reading and writing ariaChecked updates the reflected aria-checked attribute.