Select 2 in bootstrap 3

Asked

Viewed 836 times

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/

  • Ok you need to do with Select2? Select more than one item at a time?

  • This can implement, as I can select more than one item

  • You came to look at documentation? there are examples of how to implement

  • I managed to find in the documentation, thanks!!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.