-3

this will give me drop-down menu

<form action="/action_page.php">
  <label for="cars">Choose a car:</label>
  <select name="cars" id="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="opel">Opel</option>
    <option value="audi">Audi</option>
  </select>
  <br><br>
  <input type="submit" value="Submit">
</form>

i want to have each value of drop-down menu with checkbox so i can select multiple value and can submit it together. something like this

  • Are you just looking for [the `multiple` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple)? – David Oct 12 '22 at 17:14
  • i want to select(check) multiple checkbox from drop-down and than submit them – jordon van forest Oct 12 '22 at 17:17
  • Then yes, you are looking for the `multiple` attribute for your `` doesn't do that. – David Oct 12 '22 at 17:20

1 Answers1

0

Check out select's multiple attribute, should be what you're looking for.

Asher Moshav
  • 109
  • 5