Apply preset format to input field
Apply preset format to input field
1. How can I set the input to reflect this structure "999-999-9999" The "-" must be preset.
(The user only need to type the digits).
2. The total number of digits will always be 10 digits. Any other command that I can use to replace the "rangelength"
Thank you.
Copy code
- phoneno: {
- required: true,
- digits: true,
- rangelength: [10,10] // numeric always 10 digits
- },