this code shows you that how you can check the user's value is valid US Zipcode or not using javascript on button click event.