This commit is contained in:
afiq
2021-02-27 12:34:41 +08:00
parent 51bca39f35
commit c1553704f8
14 changed files with 220 additions and 65 deletions
+2 -3
View File
@@ -434,7 +434,6 @@
var customerphone = $('#main_phone').val();
var customerphone_alternate = $('#alternate_phone').val();
var age = $('#age').val();
if(age < 18){
Swal.fire({
icon: 'error',
@@ -500,7 +499,7 @@
event.preventDefault();
return false;
}else{
if(!(customerphone.length < 9 && customerphone.length >= 12)){
if((customerphone.length < 9 || customerphone.length >= 12)){
Swal.fire({
icon: 'error',
title: 'Amaran!',
@@ -627,7 +626,7 @@
event.preventDefault();
return false;
}else{
if(customerphone.length <= 9 && customerphone.length >= 12){
if(customerphone.length <= 9 || customerphone.length >= 12){
Swal.fire({
icon: 'error',
title: 'Amaran!',