Back to Content

HTMLSelectElement: multiple property

files/en-us/web/api/htmlselectelement/multiple/index.md

latest720 B
Original Source

{{ APIRef("HTML DOM") }}

The multiple property of the {{DOMxRef("HTMLSelectElement")}} interface specifies that the user may select more than one option from the list of options. It reflects the {{htmlelement("select")}} element's multiple attribute.

Value

A boolean.

Examples

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{HTMLElement("select")}}
  • {{DOMXref("HTMLSelectElement.selectedOptions")}}
  • {{DOMXref("HTMLSelectElement.length")}}
  • {{DOMXref("HTMLSelectElement.selectedIndex")}}