Design comparison
SolutionDesign
Solution retrospective
I'm still struggling with how to automatically add a space every 4 numbers for the credit card number. I thought about using Regular Expressions, but got to a dead end.
Any help is greatly appreciated with regard to that and anything else on my project!
Community feedback
- @OchojaPosted about 2 years ago
Hi bro. I did that by evaluating the input value when the value of the input changes. I suggest you go through my code and get back to me if you need clarification.
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