A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Datalist

From WHATWG Wiki
Revision as of 13:42, 19 November 2006 by Lachlan Hunt (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

For the text, email, url, date-related, time-related, and numeric types of the input element, a list attribute is introduced to point to a list of values that the UA should offer to the user in addition to allowing the user to pick an arbitrary value.

Examples

<input type="text" name="title" list="title-list">

<datalist id="title-list">
  <option value="Mr">
  <option value="Mrs">
  <option value="Miss">
  <option value="Ms">
</datalist>