I'm interested in an apartment

Do not hesitate to contact us with any questions. Our team is ready to answer you.
// on document ready document.addEventListener("DOMContentLoaded", event => { // define form element let form = document.getElementById("formElement"); console.log(form); // define submit button let submitButton = document.getElementById("submitButton"); console.log(submitButton); // on button click submitButton.addEventListener("click", event => { console.log("button clicked"); // prevent the form from being sent event.preventDefault(); // disable empty inputs 🧠 disableEmptyInputs(); // submit cleaned form //form.submit(); // for development only setTimeout(function() { form.submit(); }, 1000); }); }); // disableEmptyInputs() declaration function disableEmptyInputs() { // create an array of all targeted inputs let inputs = document.getElementsByClassName("inputsField"); // for every input of the array for (let i = 0; i < inputs.length; i++) { let input = inputs[i]; // check if the input value is empty or null if (input.value === "" || null) { // disable empty input input.disabled = true; console.log(input); } // end of if statement } // end of for loop } // end of disableEmptyInputs() declaration // go get an 🍦
Vaše zpráva byla úspěšně odeslána.
Něco je špatně. Zkontrolujte formulář.
Logo Dolfin Homes

About the developer

Since 2005 our team brings you homes which looks like you, from historical flats in the centers to family homes in the country side. With our attention to historical elements, layouts and lower energy consumption, whatever the project our homes contributes to better cities.

Vizualizace domu Plzeňská 171

We Respect Your Privacy

To ensure our website works as well as possible, we use cookies. They help us improve the site and show you tailored content. By clicking “Accept All,” you agree to this. You can adjust your settings at any time. Learn more in our Privacy Policy.

Adjust Preferences

Cookies help us understand what works well on our website and what we could improve. Some are essential for the website to function properly, while others are used for analysis or to display relevant content. You can choose what you consent to. For more details, see our Privacy Policy.