In CodeIgniter I have a form for vacation time, and I need to select what user I am assigning the vacation time for. I need help with the following 2 things
I need to use AJAX to search for the user and display them under the search bar as you are typing.
Once you click on the one you want, add them to a variable and remember just the user_id, so when I submit my form I can send the user_id, To_Date and From_Date.
Below are some pictures to help explain what I need. If someone could point me to a tutorial or some information on using AJAX this way I would appreciate it.