How to get user input for 2 digit data
- by oneMinute
In a HTML form user is expect to fill / select some data and trigger an action probably a http-post.
If your only requested data field is a "2 digit" you can use html text input element get some data.
Then you want to make it useful; enable user easily select data from a 'html select'
But not all of your data is well-ordered so eye-searching within these data is somehow cumbersome. Because your data is meaningful with its relations. If there is no primary key for foreign key "12" it should not be shown. Vice versa if this foreign key occurs a lot, then it has some weight and could be displayed with more importance.
So, what will be your way?
a) Use text input to get data and validate it with regex, javascript, ...
b) Use some dropdown select.
c) Any other way ?
Any answer will appreciated :)