Language References
Sets or retrieves whether multiple items in the list can be selected.
Inline |
<SELECT MULTIPLE ... > |
Script |
select.multiple = bMultiple ] |
false |
Multiple items cannot be selected. |
true |
Multiple items may be selected. |
This property returns or accepts only a boolean value, meaning true if set, and false if not. The property is read/write with a default value of false.
The following example shows the use of the MULTIPLE style attribute and the multiple object property to set the ability to choose multiple items in a list.
<select id=oSelect multiple>
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
</select>
...
<button onclick="oSelect.multiple=false">One</button>
<button onclick="oSelect.multiple=true">Many</button>
This feature requires Microsoft® Internet Explorer® 4.0 or later.
Show me
SELECT
selectedIndex, OPTION, selected, defaultSelected, options