Design comparison
Solution retrospective
Using javascript event listener for calculating the age and validate user input. I'm also quite happy with the mobile and desktop design for this challenge.
What challenges did you encounter, and how did you overcome them?I think it took me more time to make the input validation because I need to think several condition possible and different error message for the input. Although I put the condition when the value is empty the message displayed should be "This field is required", it just keep displaying message for invalid value instead. I just leave it be but I still think it could be nice to have different error message for certain condition.
What specific areas of your project would you like help with?- Feedback on what should I do to display error message for empty input value as mention above.
- I'm not sure how to put condition when the month value is February, April, June, etc... and how do you include leap year in the condition for the date input validation.
Feel free to check my code and live site any feedback would help a lot.
Community feedback
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