jQuery DatePicker Min Max dates
问题 I have the jQuery date picker setup and working but would like help with setting the minDate and maxDate options. My current code is below (without these options). How can I set the minDate as 3 months before the defaultDate, and maxDate as 28days after the defaultDate? var expdisp = $("#expdisp").attr("value"); $("#expirydate" ).datepicker({ showOn: "button", buttonImage: "images/calendar.gif", buttonImageOnly: true, dateFormat: "dd/mm/yy", defaultDate: expdisp, showOtherMonths: true,