This is in Adobe campaign classic.
type="text" maxlength="10" pattern="[0-9]{10}"
It is allowing only 10 digits, but accepting - and .
I want the user to enter only 10 not less or more and accept only digits.
Please help.
This is in Adobe campaign classic.
type="text" maxlength="10" pattern="[0-9]{10}"
It is allowing only 10 digits, but accepting - and .
I want the user to enter only 10 not less or more and accept only digits.
Please help.
What you could do is to replace non-numeric characters(
\D) after user input: