DEV Community

Discussion on: AutoComplete with JS

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Better would be to use the built-in <datalist> element which does the same thing, and has better functionality and accessbility

Collapse
 
chozen profile image
Glenton Samuels

Yes if you don't require anything else other than autocomplete. is essentially useless once you need to style it or do anything that's even the least bit custom.

Collapse
 
walternascimentobarroso profile image
Walter Nascimento

Hi, thanks for the comment.

I know the element but I couldn't style it (CSS) and I had a task where I needed to style the autocomplete, so my base solution was like this, this way it's easy to apply styles.