HTML Dropdown Box with Search and Input

I’ve tried to search for what I’m after, and this is the closest I can get: Make a Dropdown with Search Box using jQuery (by Yogesh Singh) https://makitweb.com/make-a-dropdown-with-search-box-using-jquery/ It can provide a HTML Dropdown with Search capability. However, what I hope to have is to have input capability as well. I.e., if nothing found, then use the user input as the result. I tried to look at the code, UPDATE: using datalist. Requirement: if found, use found value as the result. if nothing found, then use the user input as the result. Maybe both are the same case, but I