Date Range Picker
To enable range selection set the select option to range.
The microcopy for rangeStartLabel and rangeEndLabel can be easily overridden. For flight booking "Outbound" and "Return" makes sense while for accommodation booking "Check in" and "Check out" might be more appropriate.
The range start/end labels can also be hidden in some cases if needed. Use the showRangeLabels option for that.
Furthermore, you have the option to toggle the range highlight with the rangeHighlight option, if needed.
Besides invalidating selection that is before and after a specific date, the minimum and maximum allowed length of a range selection can be enforced through the minRange and maxRange options.
Dynamically switching between single, multiple or range select can be done with option changes.
Demo
$('#picker').mobiscroll().datepicker({
select: 'range',
rangeHighlight: true
showRangeLabels: true ,
rangeStartLabel: 'Outbound ' ,
rangeEndLabel: 'Return ' ,
minRange: 3 ,
maxRange: 10
}); mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
$(function () {
$('#demo-range-selection')
.mobiscroll()
.datepicker({
controls: ['calendar'],
display: 'inline',
select: 'range',
showRangeLabels: true,
});
});
<div id="demo-range-selection"></div>