Last post Jul 09, 2019 12:43 AM by darego
Jul 09, 2019 12:43 AM|darego|LINK
I have started a new asp.net mvc application in order to learn the framework a little bit better. My application is a booking system which will allow a teacher model to enter in specific dates they are available for extra lessons. A student model can then
view the available dates and choose which one suits them best.
I am using jQuery UI datepicker but my question is; is it possible for me to make only certain dates available for the student to click on the calendar (currently the student can choose any date from the calendar), based on available dates that teachers
have entered into the database?
So for example, if a teacher adds the dates 11/July/2019 and 12/July/2019 to the database I need the above calendar to only allow the student to click on/choose from these 2 specific dates.
Alternatively, if this is not possible, is there a way to highlight these dates 2 on the calendar? Hopefully this is possible using: https://jqueryui.com/datepicker/#buttonbar
Any help is greatly appreciated!