Hello, my problem is that I need disabling some days and changing color in other days, I have done the second until now, but I don´t know how to do the two things at the same time.
Here is my source code:
$(document).ready(function(){
var events;
function disabledays(){
var ds=['2012-11-13','2012-11-14'];
return ds;
}
$.ajax({
type: 'get',
async: false,
url: 'get_events.php',
success: function(data){
events=data;
}
});
var ev=events.split(",");
$( "#eventos" ).datepicker({dateFormat:'yy-mm-dd',
beforeShowDay: function(date) {
var current = $.datepicker.formatDate('yy-mm-dd', date);
return $.inArray(current, ev) == -1 ? disabledays : [true, 'busy_days', 'ui-state-highlight'];// with this line the color is changed
}
});
});