title: Change input autocomplete value
body: <p>I have another question: Is there any way to change input autocomplete value dynamically with javascript?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;input id="myInput" 
         placeholder="Write something here..." 
         onchange="changeAutocompleteValue(event)"&gt;
  
  &lt;script&gt;
      function changeAutocompleteValue(event)
      {
          var list = ["first", "second", "third"];
          event.list = list;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Google example:
  <img src="https://i.stack.imgur.com/aRtaH.png" alt="Google searching"></p>
  
  <p>Am I able to do it with plain JS? Any suggestion will be great :).</p>