Design comparison
Solution retrospective
Hi guys, I hope you're doing great. I just didn't know how to implement the errrors if you leave something blank. Maybe someone can tell me :). Thanks for the support!
Konstantin
Community feedback
- @JonathanthedeveloperPosted about 2 years ago
Hello Konstatin, your solution to this challenge was great and awesome, very responsive and that's really cool, However Instead of putting the required keyword on the HTML input tags. you could use some form validation using javascript to verify that an input was filled and if not, you then display its dedicated error messages, also you should also add some box shadow to the div.special-offer and button attached below is a code that might help you understand what I mean
inputs.forEach( input => { // check if the input is empty })
Marked as helpful0
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