Suppose I have a the following selection options:
That is not possible. Instead, you can use
autocomplete from jQuery UI to achieve the same.
Try this https://jqueryui.com/autocomplete/
<Datalist> is also there. But, trust me, it is real slow for larger list of options.