From 520a12452b6d98fd68a1403b90f212012002bbf3 Mon Sep 17 00:00:00 2001 From: myname Date: Tue, 18 Jun 2024 14:17:06 +0900 Subject: [PATCH] =?UTF-8?q?2024-06-18=2014:16=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B4=88=EA=B8=B0=ED=99=94=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/sym/log/clg/EgovLoginLogList.jsp | 15 ++++++++++++++- .../WEB-INF/jsp/sym/log/clg/NSelectWebLogList.jsp | 13 +++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/WEB-INF/jsp/sym/log/clg/EgovLoginLogList.jsp b/src/main/webapp/WEB-INF/jsp/sym/log/clg/EgovLoginLogList.jsp index c40da26d..7480d294 100644 --- a/src/main/webapp/WEB-INF/jsp/sym/log/clg/EgovLoginLogList.jsp +++ b/src/main/webapp/WEB-INF/jsp/sym/log/clg/EgovLoginLogList.jsp @@ -86,7 +86,7 @@ function logListExcelDownload(){ document.frm.action = ""; document.frm.submit(); } - +/* function fncReset(thisObj){ var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function(){ @@ -103,6 +103,19 @@ function fncReset(thisObj){ } }); } +*/ +function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { + $(this).val(''); + } + }); + } diff --git a/src/main/webapp/WEB-INF/jsp/sym/log/clg/NSelectWebLogList.jsp b/src/main/webapp/WEB-INF/jsp/sym/log/clg/NSelectWebLogList.jsp index 776b1433..ce554603 100644 --- a/src/main/webapp/WEB-INF/jsp/sym/log/clg/NSelectWebLogList.jsp +++ b/src/main/webapp/WEB-INF/jsp/sym/log/clg/NSelectWebLogList.jsp @@ -86,6 +86,19 @@ function logListExcelDownload(){ document.frm.action = ""; document.frm.submit(); } + +function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { + $(this).val(''); + } + }); + } 로그인 로그 목록