Skip to content

Instantly share code, notes, and snippets.

@kiknaio
Created September 1, 2016 17:41
Show Gist options
  • Save kiknaio/f425594dc88a5492afe9d4253fe0512b to your computer and use it in GitHub Desktop.
Save kiknaio/f425594dc88a5492afe9d4253fe0512b to your computer and use it in GitHub Desktop.
HTML5 Datalists for suggesting completion
<form>
<input list='countries'> <!-- input list name and datalist id should be same -->
<datalist id='countries'>
<option value="Germany"></option>
<option value="Austria"></option>
<option value="London"></option>
<option value="Belgium"></option>
<option value="Brazil"></option>
</datalist>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment