Browse Source

移除檢查邏輯(語法錯誤)

Mike 3 years ago
parent
commit
bf98bdf2ca
1 changed files with 1 additions and 54 deletions
  1. 1 54
      desktop11/goto_202106081638.js

+ 1 - 54
desktop11/goto_202106081638.js

@@ -89,60 +89,7 @@ $(".banner-slider").slick({
       var jsonString = JSON.stringify(formRef);*/
     var jsonInfo = $('.contact-form1').serializeObject();
     var jsonString = JSON.stringify(jsonInfo);
-    // email 格式檢查
-    $(document).ready(function () {
-  
-      //E-MAIL格式檢查
-  
-      $("body").on("change", "#email", function () {
-  
-        $Emailchecking = IsEmail($("#email").val());
-  
-  
-        if ($Emailchecking == false) {
-  
-          alert("請填寫正確的E-MAIL格式");
-  
-          // $("#email").blur(); //離開焦點
-  
-        }
-  
-      })
-  
-      function IsEmail(email) {
-  
-        var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
-  
-        if (!regex.test(email)) {
-  
-          return false;
-  
-        } else {
-  
-          return true;
-  
-        }
-  
-      }
-  
-    });
-    //手機格是檢查
-    //jquery驗證手機號碼
-  //jquery驗證手機號碼
-  // function checkSubmitMobil() {
-  //   if ($("#phone").val() == "") {
-  //   alert("手機號碼不能為空!");
-  //   //$("#moileMsg").html("<font color='red'>手機號碼不能為空!");
-  //   $("#phone").focus();
-  //   return false;
-  //   }
-    
-  //   if (!$("#phone").val().match(/^(((13[0-9]{1})|159|153)+/d{8})$/)) {
-  //   alert("手機號碼格式不正確!");
-  //   $("#phone").focus();
-  //   return false;
-  //   }
-  //   }
+   
     $.ajax({
       type: 'POST',
       url: 'http://172.105.205.52:8001/deco_request_detail',