Javascript – How do I add validation conditions to optional fields?
I have a phone, email and website fields in my form that are optional. But if the user decides to fill them I want to validate that the input is a valid phone, email and url. This is how I…