A gentleman in this forum gave me this code and it work great to test
that a string consist of only digits and it is 8 character long.
(!/^\d{8}$/.test(ContactNo ) )
How do I modify the above if I want the string to be of any length but
consist of only digits?
Thanks
that a string consist of only digits and it is 8 character long.
(!/^\d{8}$/.test(ContactNo ) )
How do I modify the above if I want the string to be of any length but
consist of only digits?
Thanks
Comment