How to make jQuery UI datepicker exclude weekends, and also set minDateto a specific value, for example + 2 / + 3 (excluding weekends) ???
What I tried:
$("#txtFromDate").datepicker({
minDate: 4,
beforeShowDay: $.datepicker.noWeekends,
changeMonth: true,
changeYear: true
});
<input type="text" id="txtFromDate" />
For example . When I select Monday (for example, today is the 10th) and give 'minDate' as 10, it should be turned on from the 24th year.
Can anyone help me out? I want to calculate the value minDate, not including Saturday and Sunday.
FIDDLE- http://jsfiddle.net/betrob/7DHVr/2/
thanks
source
share