Bootstrap 4 Multiselect Dropdown
I Read on Many Forums That the Problem of Select and Multiselect Has Been Resolved After the Beta Version of Bootstrap 4. Unfortunately I Am Unable to Display...
I read on many forums that the problem of select and multiselect has been resolved after the beta version of bootstrap 4.
Unfortunately I am unable to display the multiselect as in (bootstrap 3) in (bootstrap 4).
Bootstrap 3 Snippet
$('select').selectpicker();
<script src=""></script>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<select class="selectpicker" multiple data-live-search="true">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
Bootstrap 4 Snippet
$('select').selectpicker();
<script src=""></script>
<link rel="stylesheet" href="">
<script src=""></script>
<select class="selectpicker" multiple data-live-search="true">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
Because the bootstrap-select is a Bootstrap component and therefore you need to include it in your code as you did for your V3
NOTE: this component only works in bootstrap-4 since version 1.13.0
$('select').selectpicker();
<link rel="stylesheet" href="">
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<script src=""></script>
<select class="selectpicker" multiple data-live-search="true">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>