Choices Searchable Select
A searchable single select dropdown, via Choices.js.
Requires Bootstrap 5, Choices.js. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/choices.js@10.2.0/public/assets/styles/choices.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdn.jsdelivr.net/npm/choices.js@10.2.0/public/assets/scripts/choices.min.js"></script><div class="card border-0 shadow-sm" style="max-width:340px"><div class="card-body"><label class="form-label small fw-semibold">Country</label><select id="chCountry"><option value="">Select…</option><option>Latvia</option><option>Germany</option><option>France</option><option>Spain</option><option>Italy</option><option>Sweden</option></select></div></div>new Choices('#chCountry',{searchEnabled:true,itemSelectText:''});Free to use.This component uses Bootstrap 5, Choices.js (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.