시도 - 시구군 선택
페이지 정보
작성자 JMStudy 작성일08-09-26 15:11 조회9,632회 댓글0건본문
<script language="Javascript" src="Area.js"></script>
<script language="JavaScript">
function BuildDuty(num) {
var FJ=document.form;
if (FJ.Area_Si_Code.value > "0") {
FJ.Area_Gu_Code.disabled = false;
jsSelectClear(FJ.Area_Gu_Code);
FJ.Area_Gu_Code.selectedIndex=0;
for(ctr=0;ctr<arrGuName[num].length;ctr++) {
FJ.Area_Gu_Code.options[ctr]=new Option(arrGuName[num][ctr],arrGuName[num][ctr]);
}
FJ.Area_Gu_Code.length=arrGuName[num].length;
} else {
FJ.Area_Gu_Code.disabled = true;
jsSelectClear(FJ.Area_Gu_Code);
FJ.Area_Gu_Code.options[0]=new Option("구군 선택",'0');
}
}
function jsSelectClear(argObj) {
for (i=argObj.length-1; i>=0; i--) {
argObj.options[i] = null;
}
}
</script>
<form name="form" method="post" action="#">
<select name="Area_Si_Code" onchange="BuildDuty(this.selectedIndex-1);">
<option value="0" selected="">시도 선택</option>
<option value="I000">서울특별시</option>
<option value="E000">광주광역시</option>
<option value="F000">대구광역시</option>
<option value="G000">대전광역시</option>
<option value="H000">부산광역시</option>
<option value="J000">울산광역시</option>
<option value="K000">인천광역시</option>
<option value="B000">경기도</option>
<option value="A000">강원도</option>
<option value="C000">경상남도</option>
<option value="D000">경상북도</option>
<option value="L000">전라남도</option>
<option value="M000">전라북도</option>
<option value="O000">충청남도</option>
<option value="P000">충청북도</option>
<option value="N000">제주특별자치도</option>
</select>
<select name="Area_Gu_Code">
<option value="0" selected="">시구군 선택</option>
</select>
</form>
댓글목록
등록된 댓글이 없습니다.