Skip to content

Commit

Permalink
Merge pull request #451 from ayush-dudhani/ayush-dudhani/issue286
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
QAZIMAAZARSHAD authored Aug 8, 2022
2 parents f7ab0d5 + 3dce722 commit 9b8a396
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions sign-up.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
<div class="col-lg-6">
<div class="mb-3">
<label for="fname" class="form-label required-field">FirstName</label>
<input class="form-control" type="text" placeholder="FirstName" id="fname" >
<input class="form-control" type="text" placeholder="FirstName" id="fname">
</div>
<div class="mb-3">
<label for="lname" class="form-label required-field">LastName</label>
Expand Down Expand Up @@ -350,7 +350,7 @@
</div>
<div class="mb-3">
<label for="city" class="form-label required-field">City</label>
<input class="form-control" type="text" id="city" placeholder="city" aria-label="default input example">
<input class="form-control" type="text" id="city" placeholder="city">
</div>

<div class="mb-3">
Expand Down Expand Up @@ -412,8 +412,8 @@
let emailregx = new
RegExp("^[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-z0-9]+(\-[a-z0-9]+)*(\.[a-z0-9]+(\-[a-z0-9]+)*)*\.[a-z]{2,4}$");
var sc = /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;

if(f_name == ''){
var nameregx = /^[a-zA-Z]+$/;
if(f_name == ''){
//alert("Ghj");
giveAlert('Please enter your FirstName!','info');
}
Expand All @@ -425,6 +425,13 @@
}
else if (emailregx.test(email) == false) {
giveAlert('Invalid Email Address!', 'info');

}
else if(nameregx.test(f_name) == false ) {
giveAlert('Invalid FirstName!', 'info');
}
else if(nameregx.test(l_name) == false){
giveAlert('Invalid LastName!', 'info');
}
else if(pwd1==''){
giveAlert('Please enter your Password!','info');
Expand All @@ -435,6 +442,9 @@
else if(city =='' ){
giveAlert('Please enter your city!','info');
}
else if(nameregx.test(city)== false){
giveAlert('Invalid CityName!','info');
}
else if(add1 == ''){
giveAlert('Please enter your address!','info');
}
Expand Down

0 comments on commit 9b8a396

Please sign in to comment.