Question subject: What will be validation for Zip code ?
Posted: Wed Jul 08, 2009 6:39 am
Joined: Thu Jun 25, 2009 6:42 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
Hello Friends, Here is a post for Zip code Validation
Zip code : Zip code should be atleast 3 & atmost 10 charcters only , should be alphanumeric & should accept dash(-).
Golden Regards, Eluminous Support Team eLuminous Technologies
Wide Friso
Question subject: Re: What will be validation for Zip code ?
Posted: Fri Jul 10, 2009 8:47 am
Joined: Wed Apr 15, 2009 7:18 am Posts: 32 Has thanked: 0 time Have thanks: 0 time
The following Java Script validates the US Zip Code. It validates the US Zip Code which Should be in 5 digit Format or Zip + 4 Format. function funcValidateUSZip( strValue ) { var MyRegExp = /(^\d{5}$)|(^\d{5}-\d{4}$)/; //check for valid US Zipcode return MyRegExp.test(strValue); }