HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The multiple attribute is a boolean attribute."
The multiple
attribute is a boolean attribute.
When present, it specifies that the user is allowed to enter/select more than one value.
The multiple
attribute can be used on the following elements:
A file upload field that accepts multiple values:
<form action="/action_page">
Select images: <input type="file" name="img" multiple>
<input type="submit">
</form>
A drop-down list that allows multiple selections:
<select multiple>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
The multiple
attribute has the following browser support for each element:
Element | |||||
---|---|---|---|---|---|
input | 6.0 | 10.0 | 3.6 | 5.0 | 11.0 |
select | Yes | Yes | Yes | Yes | Yes |