Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isNaN(cep) || tc.length<10){
- alert('digite seu cep corretamente');
- document.form.cep.style.background='red';
- return false;
- }
- if (!/^[0-9]{5}-[0-9]{3}$/.test(cep)){
- alert('digite seu cep corretamente');
- document.form.cep.style.background='red';
- return false;
- }
- /^d{5}-d{3}$/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement