Switch to full style
Dynamic open source server-side web development
Post a reply

What will be validation for Zip code ?

Wed Jul 08, 2009 6:39 am

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



Re: What will be validation for Zip code ?

Fri Jul 10, 2009 8:47 am

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);
}

Post a reply
  Related Posts  to : What will be validation for Zip code ?
 US Zip Code Validation     -  
 Weka java code for Random Forest Cross Validation     -  
 XML validation against DTD     -  
 DNS Validation     -  
 validation on number     -  
 date validation in asp     -  
 validation using JavaScript     -  
 Validation using Ajax     -  
 Email validation in Javascript     -  
 Form Validation Problem     -