Skip to content

Instantly share code, notes, and snippets.

@adactio
Created January 9, 2011 17:24
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adactio/771830 to your computer and use it in GitHub Desktop.
Save adactio/771830 to your computer and use it in GitHub Desktop.
Progressive enhancement with datalist
<!DOCTYPE html>
<title>Datalist test</title>
<meta charset="utf-8">
<form>
<label for="source">How did you hear about us?</label>
<datalist id="sources">
<select name="source">
<option>please choose...</option>
<option value="television">Television</option>
<option value="radio">Radio</option>
<option value="newspaper">Newspaper</option>
<option>Other</option>
</select>
If other, please specify:
</datalist>
<input id="source" name="source" list="sources">
<input type="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment