Skip to content

Instantly share code, notes, and snippets.

@tssm
Last active November 8, 2015 18:20
Show Gist options
  • Save tssm/3019900 to your computer and use it in GitHub Desktop.
Save tssm/3019900 to your computer and use it in GitHub Desktop.
HTML snippets.
<!-- By Jeremy Keith (http://adactio.com/journal/4272/) -->
<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 the browser does not support the <datalist> element this will be displayed -->
If other, please specify:
</datalist>
<input id=source name=source list=sources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment