update
This commit is contained in:
@@ -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!',
|
||||
|
||||
Reference in New Issue
Block a user