onClick 함수 폼 function onClick(code) { switch(code) { case "NTC_SEARCH" : $("#nowPage").val(1); $("#noticeListForm").attr("action", ''); $("#noticeListForm").submit(); break; case "NTC_TODAY" : var tDay = getFormatDate(getToday(), '2'); $("#bgnDt").val(tDay); $("#endDt").val(tDay); break; case "NTC_WEEK" : var weekDate = getWeekDate(); $("#bgnDt").val(weekDate[1]); $("#endDt").val(weekDate[5]); break; case "N.. 더보기 검색 엔터키 처리 /** *검색 엔터키 처리 */ function onKeyDown() { if(event.keyCode == 13) { $(".searcSubmit").trigger('click'); } } 또는 더보기 날짜 관련함수 /** *오늘 날짜 반환 */ function getToday() { var a = new Date(); return a; } /** *이달의 마지막 일 반환 */ function getMonthEndDate(year, month) { var dt = new Date(year, month, 0); return dt.getDate(); } /** *이번주 일~토 날짜 반환 */ function getWeekDate() { var currentDay = new Date(); var theYear = currentDay.getFullYear(); var theMonth = currentDay.getMonth(); var theDate = currentDay.getDate(); var theDayOfWeek =.. 더보기 이전 1 ··· 6 7 8 9 10 11 12 ··· 17 다음