Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

validate zip code javascript

function isZipCode(str) 
{
  return /^d{5}(-d{4})?$/.test(str);
}
 
PREVIOUS NEXT
Tagged: #validate #zip #code #javascript
ADD COMMENT
Topic
Name
3+8 =