From 3ef82f6b2ad8caba7e7d96dfe041c1a867dacf84 Mon Sep 17 00:00:00 2001 From: yova Date: Sun, 10 Oct 2021 01:37:45 +0200 Subject: [PATCH] dunno show error msg --- static/contact-form/form.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/contact-form/form.js b/static/contact-form/form.js index d9a05af..bba2df0 100644 --- a/static/contact-form/form.js +++ b/static/contact-form/form.js @@ -55,15 +55,16 @@ $(function() $btn.text('Sending ...'); }); - - $.ajax({ + $('#error_message').hide(); + + $.ajax({ type: "POST", url: '/contact-form/handler.php', data: $form.serialize(), success: after_form_submitted, error: submit_error(null), dataType: 'json' - }); + }); }); });