Datepicker and timepicker
I have a flatpickr datepicker and a jquery timepicker. I want that people can reserve a date and time for a tattooshop. I save this to the database and then after i want to retrieve the time so that i can use them to disable the time in the dropbox. So people can’t choose a reserved time again over and over again. I found out how to disable the time with the timepicker using disableTimeRanges:
. But how do i use this for if the user chooses another date. How can the timepicker dynamically change? And change with the disabled time-ranges.
Datepicker and timepicker
I have a flatpickr datepicker and a jquery timepicker. I want that people can reserve a date and time for a tattooshop. I save this to the database and then after i want to retrieve the time so that i can use them to disable the time in the dropbox. So people can’t choose a reserved time again over and over again. I found out how to disable the time with the timepicker using disableTimeRanges:
. But how do i use this for if the user chooses another date. How can the timepicker dynamically change? And change with the disabled time-ranges.
Datepicker and timepicker
I have a flatpickr datepicker and a jquery timepicker. I want that people can reserve a date and time for a tattooshop. I save this to the database and then after i want to retrieve the time so that i can use them to disable the time in the dropbox. So people can’t choose a reserved time again over and over again. I found out how to disable the time with the timepicker using disableTimeRanges:
. But how do i use this for if the user chooses another date. How can the timepicker dynamically change? And change with the disabled time-ranges.
Datepicker and timepicker
I have a flatpickr datepicker and a jquery timepicker. I want that people can reserve a date and time for a tattooshop. I save this to the database and then after i want to retrieve the time so that i can use them to disable the time in the dropbox. So people can’t choose a reserved time again over and over again. I found out how to disable the time with the timepicker using disableTimeRanges:
. But how do i use this for if the user chooses another date. How can the timepicker dynamically change? And change with the disabled time-ranges.