전화번호 오류 검출
 
// form 값 오류 체크
function checkValidate(rType) {
    var isValidate = true;
    var telno1 = $(‘#inp_coupon_telno1’).val();
    var telno2 = $(‘#inp_coupon_telno2’).val();
    var telno3 = $(‘#inp_coupon_telno3’).val();

    if (telno2 == ” || telno2.indexOf(‘ ‘) > -1 || isNaN(telno2)) {
        alert(‘수신번호 오류’);
        isValidate = false;
    }
    else if (telno3 == ” || telno3.indexOf(‘ ‘) > -1 || isNaN(telno3)) {
        alert(‘수신번호 오류’);
        isValidate = false;
    }

}

Leave a Reply

Your email address will not be published. Required fields are marked *