如何在 wijmo 日历中设置今天的最大日期?
这是我的代码:
$(function () {
$("#calendar1").wijcalendar({
popupMode: true,
selectedDatesChanged: function () {
var selDate = $(this).wijcalendar("getSelectedDate");
var _selDate = dateFormat(selDate, "mm/dd/yyyy");
if (!!selDate) $("#begindate").val(_selDate);
}
});
$("#begindate").click(function () {
$("#calendar1").wijcalendar("popup", {
of: $("#begindate"),
offset: '0 2'
});
})