select multiple attribute
The multiple attribute on the select element:
Examples
<select | attribute | = | "value(s)" | > | ... | <⁄ | >example |
---|---|---|---|---|---|---|---|
4. | multiple | = | "", , multiple | <multiple> ... <⁄ > <multiple=""> ... <⁄ > <multiple="multiple"> ... <⁄ > |
Video demonstration select multiple attribute
HTML5 select multiple attribute Tutorial
min | video details |
---|---|
00:00 | video tutorial: multiple attribute on select element |
00:09 | by default select control allows you to select ONLY 1 option from the set of options |
00:20 | but if you add the multiple attribute on select control, you will be able to select MORE THAN 1 option from the set of options |
00:30 | you can select multiple options: - by holding down CTRL key while selecting them OR - by holding down mouse left button while selecting the options OR - by holding down Shift key when selecting the last option |
00:42 | multiple attribute if present on select control, may have the next 2 values: - empty string: "" - attribute's canonical name: "multiple" both values return the true value → the control allows multiple options selection for false value (= only 1 option can be selected) simply don't add this attribute on the control |