============================================================== var school_a = document.getElementsByName("school_a[]"); if(school_a[0].value=="") { alert(" 입력해 주십시오 "); school_a[0].focus(); return false; } ===================================================================
<input type=text name=school_a[] size="15" class="input02"> <input type=text name=school_a[] size="15" class="input02"> <input type=text name=school_a[] size="15" class="input02"> <input type=text name=school_a[] size="15" class="input02"> =========================================================== ========================================================= if(formObj.m_onoff[0].checked==false && formObj.m_onoff[1].checked==false){ alert('회원 발신 메일수신 여부를 선택해 주십시오 '); return false; } =================================================================== <input type="radio" name="m_onoff" value="2">예, 받겠습니다. <input type="radio" name="m_onoff" value="1">아니오, 괜찮습니다.
|