우편번호 검색하고 결과를 부모창에 집어넣기

<script language=javascript>

<!--

    function send_submit(index)

    {

    opener.document.reg_frm.zip1.value = zip1[index].value;

    opener.document.reg_frm.zip2.value = zip2[index].value;

    opener.document.reg_frm.addr1.value = addr1[index].value;

    opener.document.reg_frm.addr2.focus();

    self.close();

    return true;

    }

-->

</script>

 

본문 중....

<input type="hidden" id="zip1" value="<%=zip1%>">

<input type="hidden" id="zip2" value="<%=zip2%>">

<input type="hidden" id="addr1" value="<%=addr1%>">

<input type="button" class="style1" value='선택' 허용되지않은 태그 사용중="send_submit(<%=i++%>)">

+ Recent posts