DATALIST element gets an
ID attribute and contains numerous
OPTION elements, just as a
SELECT element would:
<datalist id="frameworks"> <option value="MooTools"> <option value="Moobile"> <option value="Dojo Toolkit"> <option value="jQuery"> <option value="YUI"> </datalist>
DATALIST element is in place, a list attribute gets added to an
INPUT element which refers to the list
<input name="frameworks" list="frameworks" />
What's provided is a very rudimentary but useful autocomplete list of existing items that match given text. Of course the lack of styling that comes with
OPTION elements isn't optimal, and there's no method to hook
DATALIST's up to a service endpoint for more dynamic suggestions, but this new element is a step in the right direction!
Alas, non-functional on Android JB default browser.