如何在jquery ui calendar中禁用以前的日期。
此外,如何从图像设置日历弹出窗口,而不是直接从文本框
答案 0 :(得分:1)
$( ".selector" ).datepicker({
minDate: new Date(2007, 1 - 1, 1), //this sets the date before which no dates will be available
showOn: 'button', //this makes it so the callender only pops up when you click the button
buttonImage: "images/calendar.gif", //sets the button image
buttonImageOnly: true //use an image instead of a button
});