Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Progressive enhancement with datalist
<!DOCTYPE html>
<title>Datalist test</title>
<meta charset="utf-8">
<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>
If other, please specify:
<input id="source" name="source" list="sources">
<input type="submit">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment