For example the following code:
$('#test').datebox({
value:'2015-10-10'
}).datebox('calendar').calendar('options').validator = function(d){
return d.getDay() != 6 && d.getDay() != 0
}
The validator in the above code does not work.
If you change the value to any other non-Saturday or Sunday date, it will work fine.