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
CodePudding user response:
Check out select's multiple attribute, should be what you're looking for.
CodePudding user response:
Although you could use the SELECT multiple attribute as Asher Moshav said, if you wanted to include jquery or bootstrap, take a look at this article... How to use Checkbox inside Select Option