html multiple select. code example
Example 1: how to choose multiple option from select option
<!-- JUST ADD multiple ATTRIBUTE WITHIN select ATTRIBUTE -->
Cars:<br>
<select name="car" multiple>
<option value="Volvo">Volvo</option>
<option value="Thar">Thar</option>
<option value="Audi">Audi</option>
</select>
Example 2: select 2 multiselect
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
$(document).ready(function() {
$('.js-example-basic-single').select2();
});