if (model.value.length === 6 && !/^d+$/.test(model.value)) {
//Write something out
}
This works fine when when you write the number like “123456” but I want it to be ok to write it like this too “123 456”, is that possible?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
if (model.value.length === 6 && !/^d+$/.test(model.value)) {
//Write something out
}
This works fine when when you write the number like “123456” but I want it to be ok to write it like this too “123 456”, is that possible?