I am working on a select dropdown and want to add a search box to easily filter through the available options. I know this can be done using the chosen library, but I prefer to implement it using plain JavaScript or jQuery.
Does anyone have suggestions on how to achieve this without relying on an external library?
https://i.stack.imgur.com/WK9DB.png
.Organization_Desg_filter_select {
padding: 10px 0px;
border-width: 0px;
width: 240px;
}
<label class="mt-3 mb-0">Designation Name:</label>
<select class="Organization_Desg_filter_select">
<option selected="selected" disabled>Select</option>
<option value="Public Relationship Officer">Public Relationship Officer</option>
<option value="Officer">Officer</option>
<option value="Associate">Associate</option>
<option value="Executive">Executive</option>
<option value="Head of Department">Head of Department</option>
</select>
<hr class="mt-0" />