Skip to content

Instantly share code, notes, and snippets.

@trumball
Created September 26, 2013 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trumball/6718402 to your computer and use it in GitHub Desktop.
Save trumball/6718402 to your computer and use it in GitHub Desktop.
Autocompletion with HTML5 datalists Using the datalist element, HTML5 allows you to create a list of data to autocomplete a input field. Super useful! Here is a sample code to re-use in your own projects.
<input name="frameworks" list="frameworks" />
<datalist id="frameworks">
<option value="MooTools">
<option value="Moobile">
<option value="Dojo Toolkit">
<option value="jQuery">
<option value="YUI">
</datalist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment