I am currently adding validation to my date pickers and am having trouble setting the min date in the to date picker to be whatever was chosen in the
Please check this working fiddle
JSFiddle
Use option to set the minDate to the second datepicker
option
minDate
datepicker
$("#from").datepicker({ defaultDate: new Date(), minDate: new Date(), onSelect: function(dateStr) { $("#to").val(dateStr); $("#to").datepicker("option",{ minDate: new Date(dateStr)}) } });