Design comparison
Solution retrospective
The validation e-mail feature is working! But for some reason the icon-error.svg
doesn't appear when the validation is false
. Could you help me to fix this? π
Community feedback
- @lailton-bPosted almost 5 years ago
First you need to add the error image to HTML, place it in the desired location with CSS and assign display: none to the element. After that you create in CSS an active class that assigns display: block to the element, finally add in the javascript code a function that adds the active class to the element of the error image whenever the email is invalid and remove that class whenever the email is valid.
If you want you can take a look at the code of my solution for this exercise, there I did this same procedure. Hope this helps (:
2@vanribeiroPosted almost 5 years ago@lailton-b thank you to your answer! ππ Today, I solved it. The problem was the way what I was writing the relative path! Now we can see the images. But thank you very much to answer me! πππ
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