Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Element
  4. ariaMultiSelectable

Element: ariaMultiSelectable property

Baseline 2023
Newly available

Since October 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

TheariaMultiSelectable property of theElement interface reflects the value of thearia-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.

Note:Where possible use an HTML<select> element as this has built in semantics and does not require ARIA attributes.

Value

A string with one of the following values:

"true"

More than one item may be selected at a time.

"false"

Only one item may be selected.

Examples

In this example thearia-multiselectable attribute on the element with an ID oflistbox1 is set to "true" indicating that this input accepts multiple selected items. UsingariaMultiSelectable we update the value to "false".

html
<div  role="listbox"  tabindex="0"   aria-multiselectable="true"  aria-labelledby="listbox1label"  aria-activedescendant="listbox1-1">  <div role="option" aria-selected="true">    Green  </div>  <div role="option">Orange</div>  <div role="option">Red</div></div>
js
let el = document.getElementById("listbox1");console.log(el.ariaMultiSelectable); // "true"el.ariaMultiSelectable = "false";console.log(el.ariaMultiSelectable); // "false"

Specifications

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# dom-ariamixin-ariamultiselectable

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp