Element: ariaDisabled プロパティ
Baseline 2023Newly available
Since October 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
ariaDisabled
は Element
インターフェイスのプロパティで、aria-disabled
属性の値を反映し、要素が知覚可能だが無効であり、編集や他の処理をすることはできないことを示します。
値
例
この例では、ID が saveChanges
である要素の aria-disabled
属性が "true" に設定されており、この入力が現在無効であることを示しています。ariaDisabled
を使用して、値を "false" に更新します。
html
<div id="saveChanges" tabindex="0" role="button" aria-disabled="true">Save</div>
js
let el = document.getElementById("saveChanges");
console.log(el.ariaDisabled); // "true"
el.ariaDisabled = "false";
console.log(el.ariaDisabled); // "false"
仕様書
Specification |
---|
Accessible Rich Internet Applications (WAI-ARIA) # dom-ariamixin-ariadisabled |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ariaDisabled |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.