There is such a script
function handleSubmit() { document.getElementById("application").submit(); } function delaySubmit() { window.setTimeout(handleSubmit, 1000); // change this to whatever delay you need }; which sets a delay before clicking submit in the feedback form, the delay is needed to execute the animation after clicking the send button
How do I implement a click delay in the form of feedback on the condition so that all fields are correct / filled? otherwise, it sends without REQUIRED.
markup form with required
document.querySelector('.openPopup').addEventListener('click', function() { var jPopupDemo = new jPopup({ contentHtml: '<strong>Это быстро!</strong>\ <p>Молниеносная регистрация, за 16 секунд</p>\ <form id="application" action="application.php" method="POST" name="application">\ <input name="name" id="applicationName" maxlength="20" placeholder="Имя и фамилия" autocomplete="off" required />\ <input name="email" type="email" id="applicationEmail" maxlength="20" placeholder="Ваш E-mail" autocomplete="off" required />\ <input name="telephone" type="Tel" id="applicationTelephone" maxlength="20" placeholder="Номер телефона" autocomplete="off" required />\ <button class="applicationButton" type="button" form="application"><p style="display:inline">Отправить</p><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><path id="paper-plane-icon" d="M462,54.955L355.371,437.187l-135.92-128.842L353.388,167l-179.53,124.074L50,260.973L462,54.955z M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"></path></svg></button>\ </form>' }); });