skip to Main Content

Jquery ajax – How to check if a form was already submitted with javascript and ajax to avoid multiple sending of the same form

A form is a really interesting element in javascript or jquery (in this case). Here's my problem: JS: const themeFolder = object_name.templateUrl; const urlAjax = themeFolder + '/FormHandler.php'; const form = $('#contact-form'); const outputmessage = $('.output-message'); form.submit(function(e) { e.preventDefault(); $.ajax({…

VIEW QUESTION
Back To Top
Search