This is my script :
$(function () {
var now = new Date();
$("#dd").datepicker({ dateFormat: 'dd-mm-yy', minDate: now});
$("#df").datepicker({ dateFormat: 'dd-mm-yy', minDate: "dd" });
});
here dd minDate is current date, also i want to add that minDate in df gonna be the selected date in dd field, so i have make serval try but it didn’t worked any idea here?
You need to handle the first datepicker’s
onSelectevent, and update the second datepicker accordingly:Working example at jsFiddle