0
캘린더에서 현재 날짜 이전의 날짜를 클릭하면 팝업 메시지를 표시하려고합니까? 이것은 사용자가 클릭 한 날짜가있는 함수입니다. setCalendarControlDate (년, 월, 일)에는 사용자가 선택한 날짜가 있습니다. 어떻게 날짜를 비교하고 오류를 보여줄 수 있습니까?현재 날짜 이전 날짜는 선택하지 않아야합니다.
function setCalendarControlDate(year, month, day) {
calendarControl.setDate(year, month, day);
var arguments = "changeDataGrid;day=" + day;
arguments += ";month=" + month;
arguments += ";year=" + year;
// arguments += ";rowId=" + rowId;
arguments += ";" + rowId;
arguments += ";";
document.getElementById(targetControlId.id).value = arguments;
document.forms[0].submit();
}