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

Contact form validation not working #12

Open
barakadanny opened this issue Jul 22, 2022 · 0 comments
Open

Contact form validation not working #12

barakadanny opened this issue Jul 22, 2022 · 0 comments

Comments

@barakadanny
Copy link
Collaborator

barakadanny commented Jul 22, 2022

Achievement

So far you have done great job and the project is well designed 💯 , But some issues were observed:

  • Your form is not validating the email format.

Issues observed:

  1. You are tagging your elements with classes instead of IDs as per your HTML. you can check in your index.js file line 106 and 107
const email = document.getElementByClass('email');
const form = document.getElementByClass('input');

change to

const email = document.getElementById("email")
const email = document.getElementById("input")
  1. Please use submit in your event listener to submit your form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant