Format US/Canadian Phone Number

Added By: solidscripts

Rated:
(4 of 5) by 6.
Rate Snippet:
Description:  This snippet is an example of how to format a US/Canadian phone number onblur client-side using a regular expression. You can also validate the phone number against the regular expression. Of course, you could easily use the same regular expression server-side.
Language:  JavaScript

Save to web space
E-mail Link

Code Snippet: