This project is created for a test using HTML, JavaScript and jQuery. This project has basic add data, display it as table and sort them according the desired options.
You are to implement a simple sorting function:
- Create a HTML page with 3 textboxes, 1 button and 1 dropdown (refer to the image above)
- UserID textbox value has to be:
- Automatically generated
- Unique, starts with 1
- Not user changeable
- UserName and UserOccupation textboxes input name and occupation
- When users click on Add button, both textboxes values need to be added into a data structure of your own design
- Dropdown contains UserID, UserName and UserOccupation for selecting your sorting preferences
- Bonus point if you have high code quality (readable and easily maintainable code), relevant comments, optimization,usage of jQuery, event delegation, etc