Baseline Widely available
The HTMLSelectElement.type
read-only property returns the form control's type
.
One of the following:
"select-multiple"
if multiple values can be selected."select-one"
if only one value can be selected.switch (select.type) {
case "select-multiple":
// Multiple values may be selected
break;
case "select-one":
// Only one value may be selected
break;
default:
// Non-standard value (or this isn't a SELECT element)
}
Specifications Browser compatibility See also
<select>
HTML element, implementing this interface.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3