Multiselect in dropdown format in Bootstrap 4

Asked

Viewed 901 times

2

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

única opção de multiselect  no bootstrap 4

I’d like to leave it in this format:

Formato Desejado

As I recall, this did not happen in the previous version of bootstrap.

Code used:

<link href="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> 

Someone can help me?

  • This demo works perfectly, but only bootstrap is not enough need to install multiselect. https://www.codeply.com/go/Z8XiNJAkjc/bootstrap-4-multiselect

  • https://select2.org/ see now exite for BS4

1 answer

0


Browser other questions tagged

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