Multiselect in dropdown format in Bootstrap 4

2

I'm having trouble finding a multiselect bootstrap 4 in the dropdown format. The only element it allows is this way:

Iwouldliketoleaveitinthisformat:

AsfarasIcanremember,thisdidnothappeninthepreviousversionofthebootstrap.

Codeused:

<linkhref="styles\bootstrap-4.1.1\bootstrap-4.1.1\dist\css\bootstrap.min.css" rel="stylesheet">

<select multiple class="form-control" data-actions-box="true">
           <option>Mustard</option>
           <option>Ketchup</option>
           <option>Relish</option>
</select> 

Can anyone help me?

    
asked by anonymous 15.06.2018 / 16:04

1 answer

0

Try:

<select class="selectpicker" multiple>
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Relish</option>
</select>

Source: link

    
15.06.2018 / 16:08