I have a Select Option that lists a series of processes. Each of them, with an X number of days. When a process is chosen, I send that number of days to DatePicker and it blocks the days of this process as of today. For example:
- Process 1 - > 7 days.
- Process 2 - 10 days.
If I select Process 1 from the option select, datepicker blocks the selection of days, from today + 7 days.
The problem is that there are a number of processes and I need the datepicker to be reset or update each time a new option is selected in select option and take the days corresponding to each process when a different one is chosen.
Any idea how to do this? Thank you very much for your help.