Skip to content

Commit 522dfa1

Browse files
Merge pull request #628 from Sumedh-byte/contactusbug
Resolved issue #608
2 parents 008ac0b + 15986e2 commit 522dfa1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

assets/js/contact-form-script.min.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ $("#contactForm").validator().on("submit", function (event) {
77
// everything looks good!
88
event.preventDefault();
99
$('#form-submit').attr("disabled", true);
10-
submitForm();
10+
submitMSG(true,"Form Submitted");
11+
$('#contactForm')[0].reset();
1112
}
1213
});
1314

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1755,13 +1755,13 @@ <h2 class="text-dark wow fadeInDown" data-wow-delay="0.3s">Contact Us</h2>
17551755
</div>
17561756
<div class="row">
17571757
<div class="col-md-6">
1758-
<form class="mt-5" id="contactForm">
1758+
<form class="mt-5" id="contactForm" method="post">
17591759
<div class="form-row">
17601760
<div class="form-group col-md-6 ">
1761-
<input type="text" class="form-control" id="inputName" placeholder="Name">
1761+
<input type="text" class="form-control" id="inputName" placeholder="Name" required>
17621762
</div>
17631763
<div class="form-group col-md-6 ">
1764-
<input type="email" class="form-control" id="inputEmail" placeholder="Email">
1764+
<input type="email" class="form-control" id="inputEmail" placeholder="Email" required>
17651765
</div>
17661766
</div>
17671767
<div class="form-group ">

0 commit comments

Comments
 (0)