Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
function validateEmail(email) {
var rest = /\S+@\S+\.\S+/;
return rest.test(email);
}
var email = "net-raft@net-raft.com";
if (validateEmail(email)) {
alert("email is valid");
} else {
alert(" email is not valid");
}
//return false;
});
</script>
</head>
<body>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507