multiple property
When used with the type="file" attribute, allows multiple files to be selected in the file selection dialog.
This property is read/write.
![]() ![]() |
Syntax
| JavaScript |
|---|
object.multiple = ptr ptr = object.multiple |
Property values
Type: boolean
When specified, the value is true, otherwise false.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.3.7
Remarks
The following example lets you pick multiple files with a files input field.
<label>Pick a few files: </label><input type="file" multiple id="myfiles" /></label> <button onclick="getFiles();">List files</button>
See also
Show:

