File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
< div class ="row ">
23
23
< label for ="name "> Address1</ label >
24
- < input type ="text " required class ="form-control " pattern ="[a-z] " id ="l_address " name ="l_address "
24
+ < input type ="text " required class ="form-control " pattern ="[a-z./] " id ="l_address " name ="l_address "
25
+ data-message ="Yah, Address1 should not be empty. "
25
26
placeholder ="Enter address1 ">
26
27
27
28
</ div >
50
51
51
52
< div class ="row ">
52
53
< label for ="name "> Phone No 2 </ label >
53
- < input type ="text " class ="form-control " pattern ="[0-9.] " id ="contact_no2 " name ="contact_no2 "
54
+ < input type ="text " class ="form-control " pattern ="[0-9.] " required id ="contact_no2 " name ="contact_no2 "
54
55
placeholder ="Enter Phone No ">
55
56
</ div >
56
57
Original file line number Diff line number Diff line change @@ -715,12 +715,16 @@ function jsRuleSets() {
715
715
// To Validate Email.
716
716
// Convert to Native String Format.
717
717
email = email . toString ( ) ;
718
+
719
+ // If no email or empty,
720
+ if ( ! email ) status = false ;
721
+
718
722
// To Check it as String or Not.
719
723
if ( / ^ \w + ( [ \. - ] ? \w + ) * @ \w + ( [ \. - ] ? \w + ) * ( \. \w { 2 , 3 } ) + $ / . test ( email ) ) {
720
724
// Valid Email.
721
725
status = true ;
722
726
}
723
- if ( ! email ) status = false ;
727
+
724
728
return status ;
725
729
} ;
726
730
/*
@@ -866,7 +870,7 @@ var jsLogger = {
866
870
*/
867
871
table : function ( data ) {
868
872
if ( true !== this . status ( ) ) return false ;
869
- console . table ( data ) ;
873
+ console . log ( data ) ;
870
874
}
871
875
} ;
872
876
/**
You can’t perform that action at this time.
0 commit comments