Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if(isNaN(cep) || tc.length<10){
  2. alert('digite seu cep corretamente');
  3. document.form.cep.style.background='red';
  4. return false;
  5. }
  6.  
  7. if (!/^[0-9]{5}-[0-9]{3}$/.test(cep)){
  8. alert('digite seu cep corretamente');
  9. document.form.cep.style.background='red';
  10. return false;
  11. }
  12.  
  13. /^d{5}-d{3}$/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement