title: Is there a way to autocomplete an input's value with the top placed option from the datalist using pure JS?
body: <p>Is there a way to autocomplete an input value (while the user is typing) with the top placed option suggested from the datalist by pressing enter (and do that with pure JS)?</p>
  <p>Somehow all the information on the matter that I manage to find suggests only solutions using JQuery. I'm quite a beginner using JavaScript, so I am not familiar with the library. So, I wonder if there is any solution that can be perforemed using pure JS?</p>