Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Made page responsive using grid, flex, and media queries.

@Uyimolo

Desktop design screenshot for the Interactive card details form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


The logic for my form validation involves adding a class (invalid) to the input fields on page load and removing the invalid class when the input field passes all validation test, used a bunch of if/else statements, is there a better way to do this? to reduce bulk?

Community feedback

Hyronβ€’ 5,870

@hyrongennike

Posted

Hi @Uyimolo,

Good job on the challenge

Just a suggestion but currently I can add any amount of numbers you can set a limit on the on input with maxlength="2" where 2 is the maximum number of characters and the same goes for `minlenght="2" .

Marked as helpful

1

@Uyimolo

Posted

Thanks @hyrongennike , I'll do just that. Then the checks for length in my JS wont be needed anymore (lesser if statements lol).

0

Please log in to post a comment

Log in with GitHub
Discord logo

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