Black Lives Matter! ✊🏾

multiple

The multiple attribute is a boolean attribute. If the attribute is present, then the select element represents a control for selecting zero or more options from the list of options. 4.11.4. The dialog element

Links about multiple

  1. HTML attribute: multiple

    posted on by MDN

    The Boolean multiple attribute, if set, means the form control accepts one or more values. Valid for the email and file input types and the select, the manner by which the user opts for multiple values depends on the form control.

This might be interesting as well

  • <select> your poison part 2: test all the things - 24 Accessibility

    posted on by Sarah Higley

    TL:DR; Jump straight to the recommendations In part 1 of this deep dive, we took a broad look at both how the native <select> element works across browsers and platforms, and the current state of accessible custom select component implementations. It’s necessary to look at how fragmented current sel…

  • Code sample

    <label for="color">Select colors:</label>
    <select id="color" multiple>
    <option value="red"> Red </option>
    <option value="green"> Green </option>
    <option value="blue"> Blue </option>
    </select>