Why does HTML 5 not have editable combobox or local menus built in? [closed]

Actually, an editable combobox or just combobox can be created using the new list attribute on the input element. It points to a datalist element that can provide a list of predefined options:

<input list=languages>
<datalist id=languages>
 <option value="English"></option>
 <option value="Dutch"></option>
</datalist>

For menus the old menu element has been reused.

You can use at least datalist in IE >=10, Firefox >=37, Chrome >= 39, Opera >= 29. Data from caniuse datalist. About menu element, only Firefox seems to have a partial support for it.

Leave a Comment