jQuery Datepicker - Programatically Limit Second Datepicker
- by Dodinas
Hello all,
I've recently been using the following piece of code to limit my 2nd Date picker (end date) so that it does not precede the date of the 1st Date picker.
$("#datepicker").datepicker({
minDate: +5,
maxDate: '+1M +10D',
onSelect: function(dateText, inst){
var the_date = dateText;
…