HTML Tag
The tag is used to provide autocomplete feature in the HTML files. It can be used with an input tag so that users can easily fill the data in the forms using select the data.
Syntax:
Example 1: The below code explains datalist Tag.
HTML
Your Cars Name:
|
Output:
Example 2: The tag object can be easily accessed by an input attribute type.
HTML
Your Cars Name:
Click Here
function datalistcall[] { var o1 = document.getElementById["carsInput"].value; document.getElementById["output"].innerHTML = "You select " + o1 + " option"; }
|
Output:
Supported Browsers:
- Google Chrome 20.0 and above
- Internet Explorer 10.0 and above
- Firefox 4.0 and above
- Opera 9.0 and above
- Safari 11.1
Article Tags :
CSS
HTML
Web Technologies
HTML-Tags
Practice Tags :
HTML
Read Full Article