Open deshack opened 9 years ago
Here the problem is that we have a label (user's name and surname) and a value (user ID). We have to store the user ID, but show the user's name and surname in the input field.
How can this be achieved?
Proposal: use name and surname for the value, than use JavaScript to set a data-id
attribute and switch it with the actual value on form submit, than get name and surname again on page load.
But it's too bad as a method. Select is still better.
When you have a lot of users, a select can be too huge. We should use HTML5 combo boxes instead.