HTMLSelectElement: multiple プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

multipleHTMLSelectElement インターフェイスのプロパティで、ユーザーがオプションのリストから複数のオプションを選択できることを指定します。これは、<select> 要素の multiple 属性を反映しています。

論理値です。

js
const selectElement = document.getElementById("comment");
console.log(selectElement.multiple);

仕様書

Specification
HTML
# dom-select-multiple

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
multiple

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報