Intro component with sign-up form challenge hub By Rubbersouls

Solution retrospective
--- I need help --
Hello, I'm a beginner so my code didn't look very pretty :D But I think I respected the design, the responsive and the js.
But I have one element that I did not respect:
In the template, if the email is wrong then the placeholder changes from "Email" to "email@example/con" But how to change the placeholder? And be able to display it each time the email is invalid?
Thanks if you help me :D
Please log in to post a comment
Log in with GitHubCommunity feedback
- @BikeInMan
Nice work !
Until you asked, I did not notice this requirement. And I had to fix mine. Turns out it's not so complicated.
` //get the input field in javascript like this or any other methods const email = document.getElementById('email');
//inside your validation, you can simply set placeholder like this email.placeholder = "email@example.com"; `
A couple of other things I noticed. Font is different and Font-size for mobile sizes needs to be reduced for you app.
Good Luck.
Marked as helpful
Join 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