Horje
HTML multiple Attribute

Definition and Usage

The multiple attribute is a boolean attribute.

When present, it specifies that the user is allowed to enter/select more than one value.


Applies to

The multiple attribute can be used on the following elements:

Elements Attribute
<input> multiple
<select> multiple

Browser Support

The multiple attribute has the following browser support for each element:


How to add A file upload field that accepts multiple values

Input Example.
index.html
Example: HTML
 <form action="/action_page.php">
  Select images: <input type="file" name="img" multiple>
  <input type="submit">
</form> 

Output should be:

How to add A file upload field that accepts multiple values

How to add A drop-down list that allows multiple selections

Select Example.
index.html
Example: HTML
 <select multiple>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select> 

Output should be:

How to add A drop-down list that allows multiple selections




html multiple attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference