From 4819fdcaeecaf77ff2e5bfeeed92d88ba76da574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Thu, 24 Jul 2025 08:24:49 +0900 Subject: [PATCH] =?UTF-8?q?select=20=EA=B0=92=EB=93=A4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/templates/info/user/user.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/main/resources/templates/info/user/user.html b/front/src/main/resources/templates/info/user/user.html index 25205552..5a68b1fe 100644 --- a/front/src/main/resources/templates/info/user/user.html +++ b/front/src/main/resources/templates/info/user/user.html @@ -366,11 +366,11 @@ //유효성 검사 const form = document.getElementById('reqForm'); kri.form.errorInit(form); - const selects = ['tel1', 'phone1', 'regionSubCode', 'regionDetailCode']; - selects.forEach(id => { - const sel = document.getElementById(id); - if (sel && sel.value) form[id].value = sel.value; - }); + + form.regionSubCode.value = ENV.select.regionSelect.getParentValue(); + form.regionDetailCode.value = ENV.select.regionSelect.getChildValue(); + form.tel1.value = ENV.select.selectTel.getValue(); + form.phone1.value = ENV.select.selectPhone.getValue(); const errors = []; if (!form.ownerName.value) errors.push({field: 'ownerName', message: '이름을 입력해 주세요.'});