function checkSubmitEmail() {
if ($("#email").val() == "") {
//$("#confirmMsg").html("郵箱地址不能爲空!");
alert("郵箱不能爲空!")
$("#email").focus();
return false;
}
if (!$("#email").val().match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)) {
alert("郵箱格式不正確");
//$("#confirmMsg").html("郵箱格式不正確!請重新輸入!");
$("#email").focus();
return false;
}
return true;
}
//jquery驗證手機號碼
function checkSubmitMobil() {
if ($("#mobile").val() == "") {
alert("手機號碼不能爲空!");
//$("#moileMsg").html("手機號碼不能爲空!");
$("#mobile").focus();
return false;
}
if (!$("#mobile").val().match(/^(((13[0-9]{1})|159|153)+\d{8})$/)) {
alert("手機號碼格式不正確!");
//$("#moileMsg").html("手機號碼格式不正確!請重新輸入!");
$("#mobile").focus();
return false;
}
return true;
}