3 ms·
This is a really simple and flexible approach. I just wish that you could natively do something that works more like select elements, so users see the contents
by JeremyNT 3y ago
This is a really simple and flexible approach.
I just wish that you could natively do something that works more like select elements, so users see the contents of the option elements but the value of the option element is actually what is populated in the form.
- kitd 3y agoIsn't that what the `value` attribute of `<option>` is for? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option https://developer.mozilla.org/en-US/docs/Web/HTML/Element/op...
- PKop 3y agoThe option and the form will work that way, but the input itself will then show the value instead of the option label... the input is not smart enough to present the option as a select does, it shows whatever you have in the "value" field.
- deleted 3y ago[deleted]