<!-- include form -->

<form action="https://leadgen.kr:443/check" id="smsFrm">

    <input type="hidden" name="seq" value="4d6a49794f513d3d"/>

    <input type="hidden" id="nm" name="nm" placeholder="이름 입력"/>

    <input type="hidden" id="hp" name="hp" placeholder="휴대폰번호 입력"/>

    <input type="hidden"id="email" name="em" placeholder="이메일 입력"/>

</form>

<script>

  $(window).ready(function(){

    $('._input_form_submit').on('click',function(){

        smsFnc();

    });

 });

  

  function stepChk(nm,hp,em){

    var returnVal = true;

    if(nm == "") {returnVal = false;}

      if(hp == "") {returnVal = false;}

    if(em == "") {returnVal = false;}

      return returnVal;

  }

function smsFnc(){

  var nm = document.getElementsByName('input_3eeb388fbb6ac')[0].value

  var hp1 = document.getElementsByName('phonenumber1_bc19c6514b346')[0].value;

  var hp2 = document.getElementsByName('phonenumber2_bc19c6514b346')[0].value;

  var hp3 = document.getElementsByName('phonenumber3_bc19c6514b346')[0].value;

  var em = document.getElementsByName('input_ed9850ac02d4c')[0].value;

  var hp = hp1+hp2+hp3;

  if(stepChk(nm,hp,em)){

    var smsForm = document.getElementById('smsFrm');

    smsForm.nm.value = nm;

    smsForm.hp.value = hp1+hp2+hp3;

    smsForm.em.value = em;

    smsForm.submit(); 

  }else{

    return false;

  }

}

 

 

</script>

<!-- //include form -->

--
카카오톡 채널 채팅하기 버튼