[jQuery] jQuery Calendar v2.7 and custom date ranges

[jQuery] jQuery Calendar v2.7 and custom date ranges


Hi All,
Does anyone know how to get the date range to work for the calendar?
I tried adding this code, but maybe I put it in the wrong place or
something. Please help.
<script>
    $(document).ready(function(){
$('.calendarRange').calendar({fieldSettings: customRange, autoPopUp:
'focus', dateFormat: 'MDY/'});
function customRange(input) {
    return {minDate: (input.id == 'dTo' ? getDate($('#dFrom').val()) :
null),
        maxDate: (input.id == 'dFrom' ? getDate($('#dTo').val()) : null)};
}
    });
</script>