You need to implement the beforeShowDay event for datepicker :
The function accepts the date as a parameter and should return an array with [0] equal to true / false, indicating whether this date is selectable, [1] equal to the name (s) of the CSS class or '' default presentation and [2] additional pop-up tooltip for this date. it is called for every day in the datepicker before displaying it.
, - :
$("#datepicker").datepicker({
beforeShowDay: function(d) {
var a = new Date(2012, 3, 10);
var b = new Date(2012, 3, 20);
return [true, a <= d && d <= b ? "my-class" : ""];
}
});
jsFiddle demo here .