Select options with search

Hi guys, how do I use a select with the ability to search between values? My need is to load through ajax a series of values ​​based on the search and then to choose a precise value.

This code doesn't work for me. I have to have it display in a modal form

<select class="selectpicker" data-live-search="true"> <option data-tokens="ketchup mustard">Hot Dog, Fries and a Soda</option> <option data-tokens="mustard">Burger, Shake and a Smile</option> <option data-tokens="frosting">Sugar, Spice and all things nice</option> </select>

Do you mean something like this ?

Yes exactly