The multiple attribute on an <input> tag specifies that multiple files can be selected in the file selection dialog.
This attribute only applies to input elements of type file.
A multiple attribute on an <input> tag.
The file input control (step 1) let users select multiple image files.
<form action="/tutorial/fileupload.html">
Select and upload one of more image files: <br /> <br />
Step 1 <input type="file" name="file"
accept=".jpg,.png" multiple> <br /> <br />
Step 2 <input type="submit">
</form>
The multiple attribute specifies that an element accepts multiple input values.
With this attribute enabled, users can select or enter one or more items.
This attribute only applies to these input types:
With type="email", multiple comma-separated emails can be entered.
<input multiple>
Here is when multiple support started for each browser:
Chrome
|
6.0 | Sep 2010 |
Firefox
|
3.6 | Jan 2010 |
IE/Edge
|
10.0 | Sep 2012 |
Opera
|
11.0 | Sep 2017 |
Safari
|
5.0 | Jun 2010 |
Back to <input>