2016-08-03 86 views

回答

1

试试这个:

$(".datepicker").datepicker({ 
    showOn: "button", 
    showButtonPanel: true, 
    buttonImage: buttonCalendar, 
    buttonImageOnly: true, 
    buttonText: "" 
}); 

,并调用这个js代码的网页,你有日历。

$.datepicker._gotoToday = function(id) { 
    $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); 
}; 
+0

其工作正常。谢谢 –