Don’t Miss the Chance

to Own your Bliss!

Get in touch with us to know more about the project.

We’d be happy
to share more details!

Your details will remain confidential.

Office Address

# 201, Corporate Building, Behind Care Hospital, Jayabheri Pine Valley, Gachibowli, Hyderabad, Telangana-500 032.

Site Address

Harshaguda Village, Mankhal Revenue Village, Maheshwaram Mandal, Hyderabad,
Telangana-501 359.

Want to visit the site and witness its potential?
document.addEventListener('DOMContentLoaded', function () { const form = document.querySelector('form[name="contact"]'); // Target the form by name attribute if (form) { // Function to display error messages function showError(input, message) { // Remove existing error message let existingError = input.parentElement.querySelector('.error-message'); if (existingError) { existingError.remove(); } // Create and append a new error message const error = document.createElement('div'); error.className = 'error-message'; error.textContent = message; input.parentElement.appendChild(error); } // Function to clear error messages function clearError(input) { const existingError = input.parentElement.querySelector('.error-message'); if (existingError) { existingError.remove(); } } // Validation logic function validateField(input) { const name = input.getAttribute('name'); if (name === 'your_name_field') { if (input.value.length > 25) { showError(input, 'Name cannot exceed 25 characters.'); } else { clearError(input); } } else if (name === 'your_phone_field') { if (!/^\d{10}$/.test(input.value)) { showError(input, 'Phone number must be exactly 10 digits.'); } else { clearError(input); } } else if (name === 'your_city_field') { if (!/^[a-zA-Z\s]+$/.test(input.value)) { showError(input, 'City can only contain letters and spaces.'); } else { clearError(input); } } else if (input.type === 'email') { if (!/^\S+@\S+\.\S+$/.test(input.value)) { showError(input, 'Please enter a valid email address.'); } else { clearError(input); } } } // Add event listeners to form fields const inputs = form.querySelectorAll('input'); inputs.forEach(input => { input.addEventListener('input', function () { validateField(input); }); }); // Validate on form submit form.addEventListener('submit', function (event) { let valid = true; inputs.forEach(input => { validateField(input); if (input.parentElement.querySelector('.error-message')) { valid = false; } }); if (!valid) { event.preventDefault(); } }); } });