2016-05-31 87 views
0
$('#calendar').datepicker({ 
    inline: true, 
    beforeShowDay: function(date) { 
     var currentDay = date.getDate(); //how to get current Day 
     return [true, "css"]; 
    } 
}); 

回答

1

要設置當前日期作爲默認日期:

$("#calendar").datepicker().datepicker("setDate", new Date()); 
相關問題