JS error

Home Forums Quform WordPress JS error

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21302
    David Park
    Participant

    (http://pfi.re.kr/test)
    I hope postcode JS
    but don’t input postcode, address, focus
    iphorm_7_1, iphorm_7_2, iphorm_7_3

    <script src=”http://dmaps.daum.net/map_js_init/postcode.v2.js”></script&gt;
    <script>
    function execDaumPostcode() {
    new daum.Postcode({
    oncomplete: function(data) {

    var fullAddr = ”;
    var extraAddr = ”;

    if (data.userSelectedType === ‘R’) {
    fullAddr = data.roadAddress;

    } else { (J)
    fullAddr = data.jibunAddress;
    }

    if(data.userSelectedType === ‘R’){

    if(data.bname !== ”){
    extraAddr += data.bname;
    }

    if(data.buildingName !== ”){
    extraAddr += (extraAddr !== ” ? ‘, ‘ + data.buildingName : data.buildingName);
    }

    fullAddr += (extraAddr !== ” ? ‘ (‘+ extraAddr +’)’ : ”);
    }

    document.getElementByName (‘.iphorm_7_1’).value = data.zonecode;
    document.getElementByName (‘.iphorm_7_2’).value = fullAddr;

    document.getElementByName(‘.iphorm_7_3’).focus();
    }
    }).open();
    }
    </script>

    • This topic was modified 6 years, 11 months ago by David Park.
    • This topic was modified 6 years, 11 months ago by David Park.
    • This topic was modified 6 years, 11 months ago by David Park.
    #21310
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #21315
    David Park
    Participant

    thank you^^

    #21396
    David Park
    Participant

    i have new problem

    (http://pfi.re.kr/test)

    I make tap 1,2

    but i don’t input in tap1
    only tap2

    – tap1
    document.getElementsByName(‘iphorm_13_1’)[0].value = data.zonecode;
    document.getElementsByName(‘iphorm_13_2’)[0].value = fullAddr;
    document.getElementsByName(‘iphorm_13_3’)[0].focus();

    – tap2
    document.getElementsByName(‘iphorm_12_1’)[0].value = data.zonecode;
    document.getElementsByName(‘iphorm_12_2’)[0].value = fullAddr;
    document.getElementsByName(‘iphorm_12_3’)[0].focus();

    • This reply was modified 6 years, 10 months ago by David Park.
    #21405
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy