5
I need to choose more than one option in a select. For example, I could have a checkbox inside the select but I don’t know how to do it, can help me?
<div class="col-md-3">
<label style="color: red;">Filial</label >
<select ng-model="modelcompraevenda.filial"
class="form-control" id="myDropdown"
style="z-index:0" ng-
options="x.nomeFilial for x in
modelcompraevenda.listFiliais track by
x.idFilial">
</select>
</div>
Give him the attribute
multiple
. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-Multiple– Sergio
has a better option?
– Gabriel Souza
Better in what way? What doesn’t work the way you want it to?
– Sergio
in visual matter, it is not clear that the user can select more than one item and at each click it is not marked which one is selected or not selected
– Gabriel Souza