I am using a datalist element, but I need the autocomplete to detects if any of the words I'm typing in the box are in the list.
Here's my code
<input type="text" list="cars" />
<datalist id="cars">
<option>Volvo</option>
<option>Saab</option>
<option>Mercedes Benz</option>
<option>Audi</option>
</datalist>
For example, right now, if I type "Benz", it won't show me anything even though the word "Benz" is somewhere in the list.
Here's a Fiddle in case you want to play with it a bit. Is that something possible using the HTML5 datalist element? Thanks!