Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added form validation to the contact form to prevent blank entries from being submitted #532

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,9 @@ <h3 class="wr">Working Hours</h3>
<h2 class="form-title">Ready to Get Started?</h2>
<form id="contactForm">
<div class="input-group">
<input type="text" id="name" placeholder="Your name" class="input-field">
<input type="email" id="email" placeholder="Your email address" class="input-field">
<textarea id="textarea" placeholder="Write your message..." class="input-field" style="resize: none;"></textarea>
<input type="text" id="name" name="name" placeholder="Your name" class="input-field" required>
<input type="email" id="email" name="email" placeholder="Your email address" class="input-field" required>
<textarea id="message" name="message" placeholder="Write your message..." class="input-field" style="resize: none;" required></textarea>
</div>
<div class="submit-button-container">
<button type="submit" class="submit-button">Send Message</button>
Expand Down