0
There is some way to use Select2 in Bootstrap 3.3, have some example for me try to implement, I am building my TCC on top of the adminLTE template and needed something like it in some queries, I thank you already!
I managed to implement so:
<div class="form-horizontal">
<label class="required-inputs"><b>Descrição</b></label>
<select id="select2-ex" name="state" style="width: 100%;">
@foreach($professores as $p)
<option value="{{$p->id}}">{{$p->nome}}</option>
@endforeach
</select></div>
Jquery:
$(document).ready(function() {
$('#select2-ex').select2();
});
How can I return more than one item?
https://fk.github.io/select2-bootstrap-css/
– hugocsl
Ok you need to do with Select2? Select more than one item at a time?
– hugocsl
This can implement, as I can select more than one item
– Ulisses Gimenes
You came to look at documentation? there are examples of how to implement
– Barbetta
I managed to find in the documentation, thanks!!
– Ulisses Gimenes