That's interesting, is one of the many tags that in HTML you will never use, but you never know may need one day, or if I see it somewhere now I what it is
Yeah, DataList is cool. One Problem though, as soon as a value is entered the dropdown magic looses its power. So you can forget a default value for the input field it will hide the drop down
Yea, I wish there was some better default implementation across browsers for such things. In the end, in production-ready projects, we end up making our own autocomplete or using an existing third-party library
You'd need a custom input for that with some JavaScript code that does this for you. One way is to just clear the input if the user types in anything that is not inside that select list
That's interesting, is one of the many tags that in HTML you will never use, but you never know may need one day, or if I see it somewhere now I what it is
Yeah, DataList is cool. One Problem though, as soon as a value is entered the dropdown magic looses its power. So you can forget a default value for the input field it will hide the drop down
Yea, I wish there was some better default implementation across browsers for such things. In the end, in production-ready projects, we end up making our own autocomplete or using an existing third-party library
Using Already it But The Problem is Scroll not working with down arrow key Please Help
Hmm, you mean navigating the options of autocomplete?
@@CodeVault with down arrow key scroll not automatically working
thx!!!
6:10 so how to make it autoselect ?
You'd need a custom input for that with some JavaScript code that does this for you. One way is to just clear the input if the user types in anything that is not inside that select list
So what if i wanna search datalist by attribute of option which is not displayed? Is that possible?
Unfortunately, no
Never knew about this tag before
Thanks!!