SHARE
TWEET

Progressive enhancement with datalist

a guest Jan 7th, 2011 1,396 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <title>Datalist test</title>
  3. <form>
  4. <label for="source">How did you hear about us?</label>
  5. <datalist id="sources">
  6. <select name="source">
  7. <option>please choose...</option>
  8. <option value="television">Television</option>
  9. <option value="radio">Radio</option>
  10. <option value="newspaper">Newspaper</option>
  11. <option>Other</option>
  12. </select>
  13. If other, please specify:
  14. </datalist>
  15. <input id="source" name="source" list="sources">
  16. <input type="submit">
  17. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top