title: How to make input type list only accept a list choice?
body: <p>I want user to select a state just from this list :</p>
  
  <pre><code>&lt;input list="states"&gt;
  &lt;datalist id="states"&gt;
      &lt;option value="Pendiente"&gt;Pendiente&lt;/option&gt;
      &lt;option value="Frenada"&gt;Frenada&lt;/option&gt;
      &lt;option value="Finalizada"&gt;Finalizada&lt;/option&gt;
  &lt;/datalist&gt;
  </code></pre>
  
  <p>but also I don't want to use &lt;select>, i know that but I want to keep the ability to type (and search among the options) but at last, one of the options must be selected.
  please help me with this. I want to use it in react</p>