I need to disable datepicker on some condition.
I have form that i have some duration from-until, but also option to be permanent.
When i select permanent, i disabled input fields that are connected with datepicker.
However i still can select date even tough inputs are disabled? Is there some way to accomplish this?
Thanks,