Is there is a way to restrict a selection in Bootstrap DateRange when a user select a disabled day or disabled date
I have setup an example here: https://jsfiddle.net/x6ncnhLv/1/
HTML:
<div class="input-daterange input-group" id="datepicker">
<input type="text" class="input-sm form-control" name="start" />
<span class="input-group-addon">to</span>
<input type="text" class="input-sm form-control" name="end" />
</div>
Javascript:
$('.input-daterange').datepicker({
daysOfWeekDisabled: "0,6",
datesDisabled: ['01/06/2016', '01/21/2016']
});
For example if a user select Friday to Monday the selection should not get applied because Sat and Sun are disabled days.
The same applies to dates as well.