Create a gist now

Instantly share code, notes, and snippets.

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