2808 explained code solutions for 75 technologies


htmlNative input custom autocomplete using datalist


<input list="planets">

<datalist id="planets">
  <option value="Earth">
  <option value="Mars">
</datalist>ctrl + c
<input

standard text input

list="planets"

specify id of datalist tag to use for autocompletion

id="planets"

datalist tag for planets input

option value="Earth"

first item to use for autocomplete (can have any number of <option tags)