Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

validate zip code javascript

function isZipCode(str) 
{
  return /^d{5}(-d{4})?$/.test(str);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: To append dropdown option using jquery 
Javascript :: sts get-session-token 
Javascript :: add item to list javascript 
Javascript :: get month in two digit in javascript date 
Javascript :: javascript flatten an array 
Javascript :: loopback upsert 
Javascript :: jquery get element max height 
Javascript :: how get first option in select in vue js 
Javascript :: json javascript 
Javascript :: For loop sum in javascript 
Javascript :: flip a coin javascript 
Javascript :: replace line break with html line break js 
Javascript :: react native header height 
Javascript :: how to code localstorages in html 
Javascript :: internal/modules/cjs/loader.js:1122 return process.dlopen(module, path.toNamespacedPath(filename)); 
Javascript :: readonly vs disabled 
Javascript :: stackoverflow narrate text js 
Javascript :: random item from array javascript 
Javascript :: javascript get intersection of two arrays 
Javascript :: javascript date example 
Javascript :: To split a full name into first and last names in JavaScript 
Javascript :: js get certain number of elements from array 
Javascript :: js load js file 
Javascript :: disable button click jquery 
Javascript :: vue js reload page 
Javascript :: getboundingclientrect() javascript 
Javascript :: new gatsby project 
Javascript :: js toggle class 
Javascript :: get first day of the week of a given date javascript js 
Javascript :: split date 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =