Categories

Updated: 03/05/2007

Validate/Format Social Security Number

The purpose of this script is to format and validate Social Security Numbers in a form field. The script strips all non-numeric characters and then validates that the remaining characters are sufficient to make up a valid SSN. If there remaining string is 9 characters in length, the script then formats by adding a &"-&" after the third and fifth digits. Resulting in a mask like ###-##-####.
©2019 A--9.com