$(function () { var dateToday = new Date(); var startDate = new Date(dateToday.getFullYear(), dateToday.getMonth(), dateToday.getDate() - 30); $("#txtFromDate").datepicker({ minDate: startDate, maxDate: dateToday }); $("#txtToDate").datepicker({ minDate: startDate, maxDate: dateToday }); });
No comments:
Post a Comment