Restrict date in jquery datepicker based on another datepicker or textbox
For example, in this sample code, startDatePicker is selected as 2010-12-12, change event of startDatePicker sets the minDate of endDatePicker 2010-12-13. It locks the cells before this date. This is a sample for what @Victor mentioned..I hope it helps…Regards…Ozlem. $(“#startDatePicker”).datepicker({ dateFormat: ‘yy-mm-dd’, changeMonth: true, minDate: new Date(), maxDate: ‘+2y’, onSelect: function(date){ var selectedDate = new … Read more