diff --git a/index.html b/index.html
index 4b11c3c..7900891 100644
--- a/index.html
+++ b/index.html
@@ -622,15 +622,15 @@
Contact Our Customer Support Team
diff --git a/script.js b/script.js
index 1875905..93ee39d 100644
--- a/script.js
+++ b/script.js
@@ -520,3 +520,15 @@ function displayVisitorCount() {
// Call the display function when the page loads
document.addEventListener('DOMContentLoaded', displayVisitorCount);
+//Name validation function on index page , Contact us section
+
+const nameInput = document.getElementById('name');
+
+nameInput.addEventListener('input', () => {
+ const name = nameInput.value.trim();
+ if (!/^[a-zA-Z ]+$/.test(name)) {
+ nameInput.setCustomValidity('Numbers and symbols are not allowed');
+ } else {
+ nameInput.setCustomValidity('');
+ }
+});
\ No newline at end of file