Content
7 Greetings, You are probably here from the future because the business changed their mind about requiring the phone number input to be an unformatted, unvalidated string. Well, lucky for you, I had thought ahead and created a function that I was very proud of before being told about this requirement. Uncomment the Line below to format and validate phone numbers as the user types them. phone Input. addEventListener (‘focus’, formatToPhone);