Search
Weekend Training
ASP.NET MVC, HTML 5 weekend training, click here
eBook free
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Mon, 26-Jan-2015 Authors
All Time Authors
Vishal@Neeraj
12960
Satyapriyanayak
12160
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

Validate Zip Code

Suhailnabi
Posted by Suhailnabi under JavaScript on 1/20/2009 5:12:31 AM | Views : 2137 | Status : [Member]

Validate zip code in javascript

function ValidateZipCode(obj)

{
var blnretVal=true;
var regExpr= new RegExp('\\d{5}(-\\d{4})?');
if (obj.value.search(regExpr)==-1)
{
blnretVal=false;
}
return blnretVal;
}


Share this to:

Bookmark It

Comments or Responses


Login to post response