asp.net.ph

Skip Navigation Links

MULTIPLE Attribute | multiple Property

Language References


Sets or retrieves whether multiple items in the list can be selected.

Syntax


Inline <SELECT MULTIPLE ... >
Script select.multiple = bMultiple ]

Possible Values


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.

Example

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 

Applies To

SELECT

See Also

selectedIndex, OPTION, selected, defaultSelected, options



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note