An <input> element with pre-defined values in a <datalist>:
The list
attribute refers to a <datalist>
element that contains pre-defined options for an <input>
element.
The numbers in the table specify the first browser version that fully supports the attribute.
<input list="datalist_id">
Value | Description |
---|---|
datalist_id | Specifies the id of the datalist to bind the <input> element to |
Example:
HTML
<input list="browsers">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Google Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |