'Express, EJS, Nodemailer -- Formatted Phone Number Cuts out After (xxx) in Input Value
I have a phone number that is a string and is formatted as such "(888) 888-8888".
I'm using code from the website (inputs) to simplify the layout and css that I already have. Everything is working fine except for the phone number input value. It cuts out and only outputs (888). I thought maybe it was the parenthesis, but I can't find any information about it.
I've tried changing the type to "text", "phone", "tel" and all the same result. Below the input, I have <%= phone %> just to see if the full number was getting passed into the ejs file and it appears it is. Then I hard coded "(888) 888-8888" as the value and it worked as well, so it's not the string format that is the issue.
I don't know what the issue is?
Please help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
