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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Better would be to use the built-in
<datalist>
element which does the same thing, and has better functionality and accessbilityYes 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.
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.