Friday, 15 May 2015

jquery - how to disable only 1 day after current date in datepicker date -


How to disable only 1 day after the current date Date assume that if the user selects Monday, So they can choose the fastest day for Wednesday on any other day rather than Tuesday.

When we order the product on Monday, they can soon choose for delivery, after 2 days Wednesday difference.

OK after trying so much, I got what you said. Look at the code below and check whether it is what you want.

  $ ("# txtFromDate") datepicker ({numberOfMonths: 2, on selection: function (selected) {var date = new date (selected) day = date.getDate () + 2; NewDate = date.getMonth () + 1 + "/" + day + "/" + date.getFullYear (); $ ("#txtToDate" ).Datekeeper ("Option", "Minadet", NewDate);}}) ;  

here


No comments:

Post a Comment