So what I need to have happen:
User types in 10 digits (only digits) and clicks “Submit” On submit – the user gets redirected to another landing page.
Here is wh
You can check to see that a string is a 10-character string of digits like this:
if (/^\d{10}$/.test(someValue)) { // it is OK } else { // not OK }