If the phone number should accept only 10 digit numbers, which of the following options will suit?
Answer options
A
True
B
False
Correct answer: True
Explanation
To accept only 10-digit phone numbers, use HTML5 input type='tel' with pattern='[0-9]{10}' or implement JavaScript regex validation using /^[0-9]{10}$/.test(value).