Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nima-maghooli authored Apr 19, 2024
1 parent a3e6a2e commit c8e8e29
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,27 +282,5 @@ window.onload = function() {
}
}




function validateForm() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var telephone = document.getElementById("telephone").value;

var response = grecaptcha.getResponse();
if (name === "" || email === "" || telephone === "") {
alert("Please fill out all fields");
return false;
}

if (response.length === 0) {
alert("Please complete the reCAPTCHA");
return false;
}
}




})()

0 comments on commit c8e8e29

Please sign in to comment.