jQuery UI datepicker: add 6 months to another datepicker
问题 I have two datepickers calendars, one for a start date, and another for an end date. What I want is to set dynamically the defaultDate of the second datepicker to be six months later than the first one, when the first date is picked. I know how to report the fisrt date to the second datepicker, but I don't know how to add six months to the first then add it as the defaultdate of the second datepicker Here is my code : $(".firstcal").datepicker({ dateFormat: "dd/mm/yy", onSelect: function