3 ms·
> You don't need JS for basic autocomplete in 2023, you can use "datalist" in HTML: This does not seem to load data dynamically, it seems to be a way to show d
by eitland 3y ago
> You don't need JS for basic autocomplete in 2023, you can use "datalist" in HTML:
This does not seem to load data dynamically, it seems to be a way to show data from a predefined list?
- WorldMaker 3y agoMost "basic" autocomplete isn't all that dynamic and you can prepopulate on the server side reasonably well. Sure, you still need JS to fetch a dynamic changing list, but you can also just update datalist options elements with JS rather than implement a full separate UX for autocomplete today. You are limited in the ability to CSS style datalist options so a lot of developers are still going to feel pressure in 2023 from "pixel perfect" UX designers to continue to reimplement that wheel, but the version of the JS that just updates a datalist after a fetch is likely much simpler than building a full "autocomplete control".