Finally got the JS working first time ever writing JS with no tutorial
Design comparison
Solution retrospective
This is the first time I have ever written Javascript without a tutorial so I am very happy with my result I even debugged it myself using dev tools which was a great learning experience.
Still one problem is I could not for the life of figure out how to get the email section working, it had its own default error message which I could not override and even if I could I was not sure how to check for the correct email format, everything else works as expected though, first name cannot be empty neither can last name and password cannot be empty or the word password.
I will keep trying to get this working as I learn more so i may update soon!
Community feedback
- @gautamjuyalPosted about 2 years ago
Hello Mauger! Congratulations on completing the challenge. Great work. I checked your repository and I would like to suggest you a few things.
-
Instead of providing a "value" attribute to the input fields, provide them with a "placeholder" attribute. That way, the pre-written text in the input fields,(which is called a placeholder) does not interact with the user input. You can always read MDN docs for more in-depth knowledge.
-
In order to validate e-mail, you can use regular expressions. You can learn about them in the (again) MDN docs.
Hope it helps.
0 -
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord