...

View Full Version : AutoFormat Phone Number



isleshocky77
10-05-2002, 05:24 PM
I once saw a script that onBlur it formatted the phone number to '(xxx)xxx-xxxx' no matter what the user entered (ie. xxxxxxxxxx,xxx xxx xxxx,xxx-xxx-xxx,(xxx)xxxxxxx ) I began to write the script on my own since I could not find it anywhere, but I cannont figure out all the ways a user could since origionally I did it on length but some have the same length. It would be greatly appreciated if anyone knew of where I could get this snippet or could help me with writing it thank you.

x_goose_x
10-05-2002, 06:21 PM
http://www.google.ca/search?q=javascript+format+phone+number&ie=UTF-8&oe=UTF-8&hl=en&meta=

The first result works.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum