자바스크립트1 [Form, Javascript] 이메일 직접입력, select 선택 입력 #Javascript#이메일주소직접입력 #이메일주소select선택 SCRIPTdocument.addEventListener('DOMContentLoaded', function() {var emailSelect = document.getElementById('email_1'); emailSelect.addEventListener('change', function() {var selectedOption = emailSelect.options[emailSelect.selectedIndex].value;var emailBack = document.getElementById('email_back');var emailInputText = document.getElementById('email_1_text');.. 2024. 8. 31. 이전 1 다음