36
rated 0 times
[
38]
[
2]
/ answers: 1 / hits: 47153
/ 9 Years ago, fri, july 3, 2015, 12:00:00
I have two datepickers like startdate and enddate.If i select 18th june 2015 in startdate i have to disable previous dates in datepicker to 18thjune2015 in enddate.
Here is my code.
$(#txtstartdate).datepicker({ minDate: 0 });
For end-date:
var startdate = $(#txtstartdate).val();
$(#txtenddate).datepicker({ minDate: startdate });
Its not working. Can anyone pls help me on this.
thank you.
More From » jquery