there are a lot of options available to "enhance" user selection with autocomplete forms (just because it looks more advanced, does not make it necessarily easier for users to use! Keep it in mind, it depends on your use-case, test it with end users if you can)
First, most people are not aware of the HTML5 native <datalist>
element, which would cover your first case here without the need for any javascript.
It comes of course with limitations but is by far the cheapest option to consider:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist
Also a decent coverage among brothers, to be confirmed for your needs:
https://caniuse.com/datalist
If you are looking for more advanced controls, there are indeed plenty available but it depends on your stack, for instance if you use a frontend framework such as React or Vue and/or a UI library such as Material Design, Twitter Bootstrap, Bulma, Bumbag, (insert whichever UI library name here...):
You may find those handy (they have their own customization options and limitations), with the caveat being the need to adopt their UI library and/or the framework itself.
Also just a final small note:
since jquery has become for too many people the "black sheep" I am looking for other possible solutions
Just because more and more people think this way, does not mean it necessarily apply to your own project.
I no longer use jQuery myself those days because I usually run with with frontend frameworks, but for backend developers, I think it can still provide some benefits :)
If it works fine for you, there is nothing specifically wrong with it IMO.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…