Datalist is a new element in HTML5 and very useful. Basically it works with input box and when we write text in it, it will show a related item in list like option box.
By using above code, when you run it in the browser, it will appears like a normal textbox, but when you starting typing in the text box, the complete or filtered list will appears to you. As you type, only the relevant options will be shown according to your search or text you enter in text box, same as Google's Search box displays suggestions. Be aware though, slight behavioral variations may exist from browser to browser.
0 Comment(s)