3 ms·
Yes. If you want to have the id, then why are you using a text input in the first place? This seems to be exactly the use case for a <select>.
by recursive 5y ago
Yes. If you want to have the id, then why are you using a text input in the first place? This seems to be exactly the use case for a <select>.
- cmg 5y agoFor me, datalist is almost an acceptable compromise for a typical combobox (input + select/dropdown) control. Custom solutions for that require JS and are not accessible or otherwise don't behave as a user would expect a standard input to without lots of extra work.