Validate Phone Number Java
Posted on 2006-05-22
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.