Switch to full style
JavaScript code examples
Post a reply

US Zip Code Validation

Sat Jun 08, 2013 3:49 pm

US Zip Code Validation
validates the US Zip Code which Should be in 5 digit Format or Zip + 4 Format.
Code:
function funcValidateUSZipstrValue ) {
var 
MyRegExp  = /(^d{5}$)|(^d{5}-d{4}$)/;
  
//check for valid US Zipcode
  
return MyRegExp.test(strValue);




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

Topic Tags

JavaScript Validation