简体   繁体   中英

Codeigniter populate dropdown value from database based on date selected

I am not very good with codeigniter and javascript.But I dont even know if this is possible. Currently I working on dental appointment booking sytem for my final year project.

On the booking function, I have trouble to generate dropdown automatically that will list all the available timeslot based on the date selected by user.

But how do I make it to happen? I have try search some tutorial and question. I do found related answer it something involved with Ajax function but I really not familiar with it, and I am still stuck on it. Have anyone has any idea or any example that I can refer?

Please help me. Thank you :'(

As you have figured out you have to use ajax here. What you can do is use an onchange event listener in your dropdown and do an ajax call with the selected value which would return the required result. How to do it, you hove to find that yourself. Google is your friend.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM