I need to control the form entry of people's phone numbers on my forms. Some people aren't entering one, some are entering too many or not enough numbers, etc.
What I'd like to do is set it where the JS checks to see that 10 numbers have been entered, regardless of any additional characters (like -, (, ), space, etc..). If more or less than 10 numbers are entered, I would like it to display a message in a certain position below the form stating "Please enter your phone number in the proper format (xxx-xxx-xxxx)"
Any help on how to get started doing this?