3 ms·
Datalist is really awesome. Autocomplete with no CSS or JS? sounds good to me.
by hayksaakian 13y ago
Datalist is really awesome. Autocomplete with no CSS or JS? sounds good to me.
- daker 13y agoAnd maybe you will be able to style it with CSS in the future.
- hughlomas 13y agoWhile it is nice to have, datalists are currently lacking in common functionality and are no real substitute for fully featured autocompletes. For example, datalist only matches the beginning of the values. Typing "soft" into a datalist will not match "Microsoft". There are some other limitations discussed here: http://msdn.microsoft.com/en-us/magazine/dn133614.aspx http://msdn.microsoft.com/en-us/magazine/dn133614.aspx
- wavefunction 13y agoHugh's point is incredibly important. You don't really want one hundred thousand <option> elements in your DOM as your "auto-complete" solution. To be honest, datalists are pretty worthless for every situation where I've needed to implement auto-complete functionality in projects, simply because the universe of possible entries has been always been huge.
- daker 13y agoI just noticed Firefox has implemented fuzzy matching, if you type "soft" into a datalist will match "Microsoft".