How to make auto-completion in two or more words?

There is a search by tags and it is needed for auto-completion, made using datalist but after entering the "basin" through the gap it is necessary that once worked auto-completion. I understand you need something from js Bibliotek
<datalist id="search_list">
 <option value="gene"></option>
 <option value="basin"></option>
 <option value="pig"></option>
<input list="search_list">
June 5th 19 at 21:37

Find more questions by tags HTMLJavaScript