Limit range date in a input daterange

117 views
Skip to first unread message

Mike

unread,
Dec 14, 2016, 10:46:59 AM12/14/16
to bootstrap-datepicker

Consider that I have a div with two input daterange.

<div class="input-daterange input-group" id="datepicker">
   <input type="text" class="input-sm form-control" name="start" />                                 
   <input type="text" class="input-sm form-control" name="end" />
</div>

I would like to be able to choose one date in the first one ( start date ) and disable all the other dates that go beyond a specific time interval.

For example, if I decide that the difference between the two dates need to be at least one year and I put 1st January 2016 in the start input, I hope that all the dates in the end input after 1st January 2017 are disabled.

Any Idea how I can do this?

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages