The validator function of calendar can be used to determine if a calendar day can be selected. The code below shows how to check constraint on date range.
$('#dd').datebox({
min:'10/2/2014',
max:'10/7/2014',
onShowPanel:function(){
var opts = $(this).datebox('options');
$(this).datebox('calendar').calendar({
validator: function(date){
var min = opts.parser(opts.min);
var max = opts.parser(opts.max);
if (min <= date && date <= max){
return true;
} else {
return false;
}
}
});
}
})