Submitted over 1 year ago
Interactive Card Details Form built with HTML, SCSS and JavaScript
@ChinatuL
Design comparison
SolutionDesign
Solution retrospective
I tried to format my card number input to have spaces after every four digits but I could not come up with a suitable solution.
I could not use Str.slice()
method or any other string method because my input type was number.
Any ideas on a possible solution are welcome.
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