Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

multiple attribute | multiple property

Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.

HTML 4.01 Specification, Section 17.6

 

Syntax

HTML<element multiple="p" ... >
JavaScript

p = object.multiple

 

Property values

Type: Boolean

false (false)

Default. Multiple items cannot be selected.

true (true)

Multiple items can be selected.

Standards information

Examples

This example uses the multiple attribute and the multiple property to switch between allowing the user to select one item or multiple items from 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>

See also

select
type

 

 

Anzeigen:
© 2016 Microsoft