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

Practice-16

@SvitlanaSuslenkova

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


Will be glad to receive any advice on my js code.

  1. Max length for inputs was a problem and I'm not sure if I did it right.
  2. To add spaces into input card number was difficult and I don't like the way I did it. I saw there is a mask fo this, but it didn't work in any way possible.
  3. Used Luhns validation: Valid numbers examples: 4444 4444 4444 4444 4 4444 4444 4444 4448 5555 5555 5555 5557

Community feedback

@DennyIsNaive

Posted

I don't know if you forgot or you didn't see it but there is a completion page after clicking on the confirm button. Does not work or has not been included.

0

@SvitlanaSuslenkova

Posted

@DennyIsNaive what browser do you use? It works on Edge and Yandex well and code is simple...

0

@DennyIsNaive

Posted

@SvitlanaSuslenkova I see, it could be browser issues. I use Mozilla. I will try with Edge and see if there is a problem somewhere with browser compatibility. Thanks for notifying me.

0

@SvitlanaSuslenkova

Posted

@DennyIsNaive I got Mozilla and it works. Can your browser be very old, maybe?

0

@DennyIsNaive

Posted

@SvitlanaSuslenkova It seems to be working in my Opera browser but not my Mozilla. I don't have Chrome. I think it is a problem on my side since it works in Opera.

0

@SvitlanaSuslenkova

Posted

Valid numbers examples:

  1. 4444 4444 4444 4444 4
  2. 4444 4444 4444 4448
  3. 5555 5555 5555 5557
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