How do I code HTML table form to format the phone number field with a dash or space? Example: 000-000-0000 So that user can just enter string of numbers.
Asked
Active
Viewed 756 times
2 Answers
0
You could try this library that let's you define the pattern you need and formats it
Agu V
- 1,922
- 4
- 23
- 38
0
You should use regular expressions validation. In here you can find regex patterns for different phone patterns.
Community
- 1
- 1
Josué Zatarain
- 741
- 4
- 21