Main content

aria-disabled

Characteristics

Type:

  • String

Used in Roles:

  • All elements of the base markup (Global)
  • No role required

See Related:

  • aria-hidden
  • aria-readonly

Value:

  • true/false
    • true: The element and all focusable descendants are disabled and its value cannot be changed by the user.
    • false (default): The element is enabled.

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

For example, irrelevant options in a radio group may be disabled. Disabled elements might not receive focus from the tab order. For some disabled elements, applications might choose not to support navigation to descendants. In addition to setting the aria-disabled attribute, authors should change the appearance (grayed out, etc.) to indicate that the item has been disabled.

The state of being disabled applies to the current element and all focusable descendant elements of the element on which the aria-disabled attribute is applied.

Note  For cross-browser compatibility, always use the aria attribute syntax to access and modify aria properties, for example object.setAttribute("aria-valuenow", newValue).

Syntax

HTML
<element aria-disabled="p" ... >
JavaScript
object.setAttribute("aria-disabled",value);var value = object.getAttribute("aria-disabled");

Microsoft Active Accessibility Properties:

  • STATE_SYSTEM_UNAVAILABLE (get_accState)

UI Automation Properties: 

  • IsEnabled

UI Automation AriaProperties Property:

  • disabledToggle editor
More in this category: « aria-checked aria-expanded »