Monday, 30 September 2013

Disabling the dates before selected date and after today date

Disabling the dates before selected date and after today date

In Reports i am showing the startDate and endDate fields to select the
particular dates using jquery ui datepicker.For the startDate and endDate
fields i am giving the today date as the default date. My requirement is
1) If the customer directly clicks in the endDate the dates before today
date and after today date should be disable.
2) If the customer selects any particular date for startdate then for
enddate the dates before to the selected date and after to the today date
should be disabled.
I am using the below code to this.
var dates = $( "#startDate,

No comments:

Post a Comment