Home › Forums › Quform WordPress › JS error
- This topic has 4 replies, 2 voices, and was last updated 6 years, 10 months ago by Ally.
- AuthorPosts
- May 22, 2017 at 8:59 am #21302David ParkParticipant
(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>
<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.
May 22, 2017 at 8:42 pm #21310AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 22, 2017 at 11:09 pm #21315David ParkParticipantthank you^^
June 14, 2017 at 3:46 pm #21396David ParkParticipanti have new problem
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.
June 18, 2017 at 4:40 pm #21405AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.