backend からのデータに応じて、月の何日かを強調しています。月または年を変更すると、再び ajax call を呼び出します。しかし、datepicker は以前の日付のみを表示します。私のコードは次のとおりです。
$("input.dC").live('click',function() {
$(this).datepicker({
showOn:'focus',
changeMonth:'true',
changeYear:'true',
onChangeMonthYear:function(year,month,inst) {
                    var date = new Date(year,month-1);
                    obj.suggestDates(date);
                    $("#"+inst.id).datepicker("refresh");
},
beforeShowDay:function(date){
                for(i=0;i<obj.r.length;i++) {
                  var m = obj.r[i];
                  if(date.getMonth() == m[1] && date.getDate() == m[0] && date.getFullYear() == m[2]) { return[true,"ui-state-highlight"];}
                }
                return[false,""];
}
}).focus();
});
obj.prototype.suggestDates=function(d){
//ajax call here 
//obj.r=response;
}