It uses the below methods to check the validity of each section.
Will make sure that the group isn't "00", as well as check the AREA/GROUP combo for known invalid ones, and the SSA High Groups.
On the final line we call test method for our regular expression and pass the social security number as input.
If the input SSN satisfies our regular expression, ‘test’ will return true otherwise it will return false. You can call this method whenever you want to validate social security number.
So I decided to write few more posts about Java Script regular expressions and how to use them to validate Social Security number, zip code, phone number and numeric data.
Since 1972, the SSA has issued Social Security cards centrally and the area number reflected the state, as determined by the ZIP code in the mailing address of the application.
There are approximately 420 million numbers available for assignment.
The Java Script Source: Forms: Validation (SSN) Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s).
When I wrote the JS regular expression article last week I had no idea that it will attract so many visitors.