WebWeWant / webwewant.fyi

If you build websites, you inevitably run into problems. Maybe there’s no way to achieve an aspect of your design using CSS. Or maybe there’s a device feature you really wish you could tap into using JavaScript. Or perhaps the in-browser DevTools don’t give you a key insight you need to do your job. We want to hear about it!
https://webwewant.fyi
MIT License
74 stars 23 forks source link

A way to make <datalist> contain exhaustive options #591

Open WebWeWantBot opened 1 year ago

WebWeWantBot commented 1 year ago

title: A way to make contain exhaustive options date: 2022-11-29T05:16:01.978Z submitter: Zacky Ma number: 63859591efcacd02a297cd3d tags: [ ] discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/ status: [ discussing || in-progress || complete ] related:

(Sorry for submitting a duplicated entry, but I put the wrong email, zacky@marchbbox.com. This entry has the correct email, zacky@marchbox.com)

Current contains options that are permissible or recommended. But often we want it to contain the exhaustive options, meaning a user has to choose one of the options in the given , if the related receives a value that is not on this list, the should be considered invalid.

The use case for this is pretty much the same as and a makes it easier to find a value. This is particularly useful for form fields like "Country", "State", etc.

The alternative could be, improving the = radio button group;