From 65bcc1b718a9872fdc87ba1b82097e85a8596475 Mon Sep 17 00:00:00 2001 From: HarvsG <11440490+HarvsG@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:15:41 +0100 Subject: [PATCH] Clear form after submission --- js/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/scripts.js b/js/scripts.js index 0379f49d30..33b31610b7 100755 --- a/js/scripts.js +++ b/js/scripts.js @@ -226,6 +226,7 @@ $(document).ready(function () { } else { $('#alert-wrapper').html(''); $('#rsvp-modal').modal('show'); + $('#rsvp-form')[0].reset(); } }) .fail(function (data) { @@ -490,4 +491,4 @@ var MD5 = function (string) { var temp = WordToHex(a) + WordToHex(b) + WordToHex(c) + WordToHex(d); return temp.toLowerCase(); -}; \ No newline at end of file +};