xxxxxxxxxx
<label class="form-label">Label</label>
<select class="form-select" required="true" aria-required="true">
<option value="active">Active</option>
<option value="no access">No access</option>
</select>
xxxxxxxxxx
<!-- How to use Bootstrap select with bootstrap 5-->
<!-- There are more ways to use bootrap select with bootstrap 5 in your project including npm, yarn etc not just cdn-->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/css/bootstrap-select.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/bootstrap-select.min.js"></script>
<!-- (Optional) Latest compiled and minified JavaScript translation files -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/i18n/defaults-*.min.js"></script>