0
$('#calendar').datepicker({
inline: true,
beforeShowDay: function(date) {
var currentDay = date.getDate(); //how to get current Day
return [true, "css"];
}
});
$('#calendar').datepicker({
inline: true,
beforeShowDay: function(date) {
var currentDay = date.getDate(); //how to get current Day
return [true, "css"];
}
});
要設置當前日期作爲默認日期:
$("#calendar").datepicker().datepicker("setDate", new Date());