Skip to content

Commit

Permalink
Create landingPage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abiK7 authored Aug 12, 2024
1 parent ace5aa5 commit acafc1d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assets/js/landingPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
jQuery(function(){
jQuery(document).on("click","#saveEmailId",function(){
if(jQuery("#emailId").val()==""){
alert("Email is empty");
}else{
var emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g;
var emailid=jQuery("#emailId").val();
if(emailPattern.test(emailid)==false){
alert("The email address is not formatted correctly");
}
}
});
});

0 comments on commit acafc1d

Please sign in to comment.