longbill/jquery-date-range-picker

startDate to be past another individual input

Opened this issue · 1 comments

Two seperate date pickers.
Once has a date going from today as:
startDate: moment().endOf('day').format('DD-MMMM-YYYY'),

The second needs to be always on that day or after... Ive been looking into this for ages and i literally cannot work out what the hell im doing.

Hi @vedaleondesign! Please see this JSFiddle (which was included in my answer here). You can use beforeShowDay to disable all the dates before a specific date, and this is a dynamic process, since beforeShowDay is executed every time before the calendar is rendered.

I'm closing the issue since I consider the question answered, but please continue the discussion here if you feel like the answer is not solving your issue.