Hi tobitheo, thanks you for response.
I am talking about calendar dialog event, not date picker input tag event. I have two datepicker formDate, toDate. When I select fromDate I want to reset min date on second DP.
Now I am reseting this in onSelect event of frst DP (fromDate).
At the moment i set new min date in onSelect function
And then I call AJS.$(’#toDate’).datePicker …
Result is ok, but this code produces multiple calendar dialogs (at least two) and sometime you need to click two times that you close calendar dialog. And if you are clicking on toDate input field, you can see different dialogs, beacuse selested date is different on each click.
I can get rid of this behaviour by calling datepicker AJS.$(’#toDate’).reset(). Dialog ar ok, but now the date field doesnt change when you select new date in dialog. This is even worse.
I am not sure how to change “min” value properly