9951 explained code solutions for 126 technologies

htmlNative input custom autocomplete using datalist

<input list="planets">

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

standard text input


specify id of datalist tag to use for autocompletion


datalist tag for planets input

option value="Earth"

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