2010-07-16 48 views

回答

0

使用beforeShowDay event

所以:

$(/*...*/).datepicker({ 
    beforeShowDay: function(date) { 
     if(disableCondition) 
      return [true,'','You can\'t select this!']; 
     else 
      return [false,'','']; 
    } 
});