imad• 3,330
@imadvv
Posted
Greeting Quadri Shittu!! Congratulations on completing your challenge!, 👏👏👏
I didn't finish this challenge yet, but I think the easy way to add that spacing is to track the input value length and add a space to the value when hint a four number.
example function .
function addSpacing(input) {
if (
input.value.length == 4 ||
input.value.length == 9 ||
input.value.length == 14
) {
input.value += " ";
}
}
Hope this give you some hints.
Happy Codding, have a Good Day
Marked as helpful
1