Changes

Jump to: navigation, search

Validating Postal Codes

123 bytes added, 20:53, 3 December 2015
no edit summary
isFloat(@value@.replace(/-/g,""),true) && (isMatch(@value@, 'NNNNN', false) || isMatch(@value@, 'NNNNN-NNNN', false))
 
Sample validation message:
 
Zip Code must be in the format of '#####' or '#####-####', example: '32334' or '32334-0092'.
==See Also==
Smartstaff
286
edits

Navigation menu