deshack / kyss

Keep Your Stuff Simple is a Linux User Group management system written in PHP.
2 stars 0 forks source link

Switch user select into combo boxes #55

Open deshack opened 9 years ago

deshack commented 9 years ago

When you have a lot of users, a select can be too huge. We should use HTML5 combo boxes instead.

deshack commented 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.