diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp
index a43cda2a..2531f931 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduInstrFeeMngList.jsp
@@ -167,19 +167,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
+ } else {
$(this).val('');
}
- });
- }
+ });
+ }
function chkSendSms(){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduRsltMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduRsltMngList.jsp
index 5bd51402..18e2963a 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduRsltMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/eduRsltMngList.jsp
@@ -341,9 +341,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- $(this).val('');
- });
- }
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
+ } else {
+ $(this).val('');
+ }
+ });
+ }
function insertNoty(eduAplctOrd, eduChasiOrd, notifyCn, notifyPath, toUserId, lctrDivCd){
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngList.jsp
index a64f487f..68f02637 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/adultVisitEdu/instrAplctMngList.jsp
@@ -73,19 +73,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ 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/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp
index d43b9f6c..94021948 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp
@@ -168,7 +168,23 @@
});
}
-
+ //초기화
+ function fncReset(thisObj){
+ var targetObj = $(thisObj).closest('.list_top').find('select,input');
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
+ } else {
+ $(this).val('');
+ }
+ });
+ }
+
과정신청기간관리목록
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp
index 003f0b2c..0c6f696e 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp
@@ -181,26 +181,21 @@
}
//초기화
- function fncReset(thisObj) {
+ function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
- $.each(targetObj, function() {
- if ($(this).prop('tagName') == 'SELECT') {
- if ($(this).attr('name').indexOf('Month') != -1) {
- $(this).val(new Date().getMonth() + 1);
- } else if ($(this).attr('name').indexOf('Year') != -1) {
- $(this).val(new Date().getFullYear());
- } else {
- $(this).prop("selectedIndex", 0);
- }
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
} else {
- if ($(this).attr('type') == 'checkbox') {
- $(this).prop('checked', false);
- } else {
- $(this).val('');
- }
+ $(this).val('');
}
- });
- }
+ });
+ }
과정신청기간관리목록
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp
index 8796ef50..14881a11 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp
@@ -144,6 +144,22 @@
});
}
+ //초기화
+ function fncReset(thisObj){
+ var targetObj = $(thisObj).closest('.list_top').find('select,input');
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
+ } else {
+ $(this).val('');
+ }
+ });
+ }
교육과정관리
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp
index e642b17c..dad416d8 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp
@@ -100,7 +100,22 @@
event.stopImmediatePropagation();
} */
-
+ //초기화
+ function fncReset(thisObj){
+ var targetObj = $(thisObj).closest('.list_top').find('select,input');
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
+ } else {
+ $(this).val('');
+ }
+ });
+ }
교육문의
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp
index 65f237f6..d4f2e59e 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp
@@ -168,27 +168,22 @@
});
}
-
- function fncReset(thisObj) {
+ //초기화
+ function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
- $.each(targetObj, function() {
- if ($(this).prop('tagName') == 'SELECT') {
- if ($(this).attr('name').indexOf('Month') != -1) {
- $(this).val(new Date().getMonth() + 1);
- } else if ($(this).attr('name').indexOf('Year') != -1) {
- $(this).val(new Date().getFullYear());
- } else {
- $(this).prop("selectedIndex", 0);
- }
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
} else {
- if ($(this).attr('type') == 'checkbox') {
- $(this).prop('checked', false);
- } else {
- $(this).val('');
- }
+ $(this).val('');
}
- });
- }
+ });
+ }
과정신청기간관리목록
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp
index 2ed0ab91..c8e0c63c 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp
@@ -170,26 +170,21 @@
}
//초기화
- function fncReset(thisObj) {
+ function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
- $.each(targetObj, function() {
- if ($(this).prop('tagName') == 'SELECT') {
- if ($(this).attr('name').indexOf('Month') != -1) {
- $(this).val(new Date().getMonth() + 1);
- } else if ($(this).attr('name').indexOf('Year') != -1) {
- $(this).val(new Date().getFullYear());
- } else {
- $(this).prop("selectedIndex", 0);
- }
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
} else {
- if ($(this).attr('type') == 'checkbox') {
- $(this).prop('checked', false);
- } else {
- $(this).val('');
- }
+ $(this).val('');
}
- });
- }
+ });
+ }
//강사료 팝업
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp
index cae0750d..6873365b 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp
@@ -217,7 +217,7 @@
}
//초기화
- function fncReset(thisObj) {
+ /*function fncReset(thisObj) {
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function() {
if ($(this).prop('tagName') == 'SELECT') {
@@ -236,7 +236,22 @@
}
}
});
- }
+ }*/
+ function fncReset(thisObj){
+ var targetObj = $(thisObj).closest('.list_top').find('select,input');
+ $.each(targetObj, function(){
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true);
+ } else if ($(this).attr('type') == 'radio') {
+ var radioName = $(this).attr("name");
+ var radioFirst = $("[name="+radioName+"]")[0];
+ $(radioFirst).prop("checked",true)
+ } else {
+ $(this).val('');
+ }
+ });
+ }
function showMemo(obj){
if($(obj).is(".on") == true){
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp
index 78d4e857..07eb446a 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/eduInstrFeeMngList.jsp
@@ -163,26 +163,18 @@
}
- function fncReset(thisObj) {
+ function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
- $.each(targetObj, function() {
- if ($(this).prop('tagName') == 'SELECT') {
- if ($(this).attr('name').indexOf('Month') != -1) {
- $(this).val(new Date().getMonth() + 1);
- } else if ($(this).attr('name').indexOf('Year') != -1) {
- $(this).val(new Date().getFullYear());
- } else {
- $(this).prop("selectedIndex", 0);
- }
+ $.each(targetObj, function(){
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
} else {
- if ($(this).attr('type') == 'checkbox') {
- $(this).prop('checked', false);
- } else {
- $(this).val('');
- }
+ $(this).val('');
}
- });
- }
+ });
+ }
//강사료 팝업
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctCfnMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctCfnMngList.jsp
index 06a8fda6..7a551fde 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctCfnMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctCfnMngList.jsp
@@ -162,6 +162,19 @@
});
}
+
+ 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/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctPrdMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctPrdMngList.jsp
index 2041fcde..463d516b 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctPrdMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsAplctPrdMngList.jsp
@@ -169,7 +169,18 @@
}
-
+ 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/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.jsp
index 6cd125e3..79126099 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.jsp
@@ -138,6 +138,19 @@
}
+ 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/oprtn/fndthEnhanceTrn/fndthEduQnaMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduQnaMngList.jsp
index 82514d5b..478d7fec 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduQnaMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthEduQnaMngList.jsp
@@ -95,6 +95,18 @@
} */
+ 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/oprtn/fndthEnhanceTrn/fndthInstrMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthInstrMngList.jsp
index d41cecc1..2162d6c8 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthInstrMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/fndthEnhanceTrn/fndthInstrMngList.jsp
@@ -163,26 +163,18 @@
}
- function fncReset(thisObj) {
+ function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
- $.each(targetObj, function() {
- if ($(this).prop('tagName') == 'SELECT') {
- if ($(this).attr('name').indexOf('Month') != -1) {
- $(this).val(new Date().getMonth() + 1);
- } else if ($(this).attr('name').indexOf('Year') != -1) {
- $(this).val(new Date().getFullYear());
- } else {
- $(this).prop("selectedIndex", 0);
- }
+ $.each(targetObj, function(){
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
} else {
- if ($(this).attr('type') == 'checkbox') {
- $(this).prop('checked', false);
- } else {
- $(this).val('');
- }
+ $(this).val('');
}
- });
- }
+ });
+ }
과정신청기간관리목록
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/otsdCprtnPrcs/lctrAplctMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/otsdCprtnPrcs/lctrAplctMngList.jsp
index 4bb883e4..6a0037f6 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/otsdCprtnPrcs/lctrAplctMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/otsdCprtnPrcs/lctrAplctMngList.jsp
@@ -51,19 +51,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ 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/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp
index 567f6fde..9d2bb853 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp
@@ -45,23 +45,19 @@
fncGoList();
}
}
-
+
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
+ } else {
$(this).val('');
}
- });
- }
+ });
+ }
function linkPage(pageNo){
var listForm = document.listForm ;
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp
index 921b05e8..e85a8ede 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp
@@ -167,19 +167,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
+ } else {
$(this).val('');
}
- });
- }
+ });
+ }
function chkSendSms(){
var chkLen = $(listForm).find("input[name=chk]:checked").length;
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp
index bf93af25..8cee1873 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp
@@ -245,20 +245,15 @@
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
- if($(this).prop('tagName') == 'SELECT'){
- if($(this).attr('name').indexOf('Month') != -1){
- $(this).val(new Date().getMonth()+1);
- }else if($(this).attr('name').indexOf('Year') != -1){
- $(this).val(new Date().getFullYear());
- }else{
- $(this).prop("selectedIndex", 0);
- }
- }else{
+ console.log($(this))
+ if ($(this).prop("tagName") == 'SELECT') {
+ // 초기화 시 무조건 select option 첫번째 지정
+ $(this).find("option:first-child").prop("selected",true)
+ } else {
$(this).val('');
}
- });
- }
-
+ });
+ }
function fncExcelDownLoad(){
var listForm = document.listForm ;
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp
index e3333f8b..671595d6 100644
--- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp
+++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp
@@ -65,7 +65,7 @@
form.submit();
}
- function fncReset(thisObj){
+ /*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){
@@ -80,7 +80,21 @@
$(this).val('');
}
});
- }
+ }*/
+
+ 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('');
+ }
+ });
+ }
+
강사활동확인서신청관리