2024-06-18 14:16 로그 페이지 초기화 버튼 수정
This commit is contained in:
parent
e14aafa02b
commit
520a12452b
@ -86,7 +86,7 @@ function logListExcelDownload(){
|
||||
document.frm.action = "<c:url value='/sym/log/clg/roleListExcelDownload.do'/>";
|
||||
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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -86,6 +86,19 @@ function logListExcelDownload(){
|
||||
document.frm.action = "<c:url value='/sym/log/clg/roleListExcelDownload.do'/>";
|
||||
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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<title>로그인 로그 목록</title>
|
||||
</head>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user