카테고리 없음

이메일 선택 ( 셀렉트박스 선택시 변경 )

벨포트조던 2016. 3. 9.
반응형


function eMailCh1(selectEmail2){

if(selectEmail2.value =='direct'){

$(selectEmail2).prev().attr("readonly",false);

$(selectEmail2).prev().focus();

}else{

$(selectEmail2).prev().val(selectEmail2.value);

$(selectEmail2).prev().attr("readonly",true);

}


}





<fieldset>

<legend>메일선택</legend> 

<input type="text" id="gPersonEmail_0" name="gPersonEmail_0" class="input" style="width:150px;" title="메일계정" /> @ 

<input type="text" id="gPersonEmai2_0" name="gPersonEmai2_0" class="input" style="width:150px;" title="메일종류" />

<select id="selectEmail1" name="selectEmail1" title="메일종류 자동입력"  onchange="eMailCh1(this);">

<option value="이메일 선택">이메일 선택</option>

<option value="hanmail.net">hanmail.net</option>

<option value="naver.com">naver.com</option>

<option value="chol.com">chol.com</option>

<option value="dreamwiz.com">dreamwiz.com</option>

<option value="empal.com">empal.com</option>

<option value="freechal.com">freechal.com</option>

<option value="gmail.com">gmail.com</option>

<option value="hanafos.com">hanafos.com</option>

<option value="hanmir.com">hanmir.com</option>

<option value="hitel.net">hitel.net</option>

<option value="hotmail.com">hotmail.com</option>

<option value="korea.com">korea.com</option>

<option value="lycos.co.kr">lycos.co.kr</option>

<option value="nate.com">nate.com</option>

<option value="netian.com">netian.com</option>

<option value="paran.com">paran.com</option>

<option value="yahoo.com">yahoo.com</option>

<option value="yahoo.co.kr">yahoo.co.kr</option>

<option value="direct">직접입력</option>

</select>

</fieldset>

반응형

댓글