Link to home
Start Free TrialLog in
Avatar of jeffreytp
jeffreytp

asked on

Validate Phone Number Java

I have a form that has multiple phone number text fields.  I want the phone number formatted: xxx-xxx-xxxx as it is typed in.  I want the fields to have two options: 1) it can be blank  or 2) it can have xxx-xxx-xxx (in numbers of course).  If the full phone number is not entered and the field is not null, then upon the cursor going out of the textbox I want a popup to occur letting the person know it is not a valid phone number.

Any suggestions?
ASKER CERTIFIED SOLUTION
Avatar of BogoJoker
BogoJoker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jeffreytp
jeffreytp

ASKER

It works like a charm.  Thank you very much for the accurate quick response!
30 minutes is hardly quick =), most are answered within 5-10 minutes. =)
Joe P
Why don't you give this one a crack then, I am still without an answer:

https://www.experts-exchange.com/questions/21814605/Checkbox-if-then-using-SQL-QUERY.html