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' - }); + }); }); });