//jquery verification email
function checkSubmitEmail() {
if ($("#email").val() == "") {
//$("#confirmMsg").html("The email address cannot be Empty! ");
alert("Email cannot be empty!")
$("#email").focus();
return false;
}
if (!$("#email").val().match(/^w ((-w )|(.w ))*@[A-Za-z0-9] ((.|-)[ A-Za-z0-9] )*.[A-Za-z0-9] $/)) {
alert("Email format is incorrect");
//$("#confirmMsg") .html("The email format is incorrect! Please re-enter!");
$("#email").focus();
return false;
}
return true;
}
//jquery verification mobile number
function checkSubmitMobil() {
if ($("#mobile").val () == "") {
alert("Mobile phone number cannot be empty!");
//$("#moileMsg").html("Mobile phone The number cannot be empty! ");
$("#mobile").focus();
return false;
}
if (!$(" #mobile").val().match(/^(((13[0-9]{1})|159|153) d{8})$/)) {
alert("Mobile number format Incorrect! ");
//$("#moileMsg").html("The mobile phone number format is incorrect! Please re-enter!");
$("#mobile").focus();
return false;
}
return true;
}