“Bootstrap 4 SelectPicker” Code-Antworten

Bootstrap 4 SelectPicker

<select class="selectpicker">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Barbecue</option>
</select>
Angry Anteater

Bootstrap 4 SelectPicker

$(function () {
    $('select').selectpicker();
});
Angry Anteater

Bootstrap 4 SelectPicker

// To style all selects
$('select').selectpicker();
Angry Anteater

Bootstrap 4 SelectPicker

// To style only selects with the my-select class
$('.my-select').selectpicker();
Angry Anteater

Bootstrap 4 SelectPicker

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-select.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap-select.min.js"></script>

<!-- (Optional) Latest compiled and minified JavaScript translation files -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/i18n/defaults-*.min.js"></script>
Angry Anteater

Ähnliche Antworten wie “Bootstrap 4 SelectPicker”

Fragen ähnlich wie “Bootstrap 4 SelectPicker”

Weitere verwandte Antworten zu “Bootstrap 4 SelectPicker” auf HTML

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen