I created jQuery date range picker. I can select date ranges and show them in the text box. Now I need, I need to disable certain dates and assign different classes for these dates.
E.g. I must be able to give class A to April 2, class B to April 4 etc.
I tried the results that I got while I searched Google, but nothing helped. What I'm trying to do is pass in some dates and classes that should be assigned to these dates. This class must be assigned to these dates, plus I must have a parameter to enable or disable these dates.
The next thing I'm trying to do is set the trip date between two dates, then this range cannot be selected.
E.g. Suppose I want to select April 2 to April 7 and April 5 is a disabled date.
Then I could be able to select either April 2 to April 4 or April 6 to April 7.
This means that only one range can be selected. Please help solve this problem.
Find the fiddle here :
source
share