Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function faiCose(){
  2. contPass();
  3. contCap();
  4. }
  5.  
  6. function contPass() {
  7. var pass = document.getElementById("inputPassword").value;
  8. if(pass.length < 8){
  9. alert("La pass รจ troppo corta");
  10. return false;
  11. } else {
  12. return true;
  13. }
  14. }
  15.  
  16. function contCap() {
  17. var cap = document.getElementById("inputCap").value;
  18. if(cap.length=5){
  19. return true;
  20. }
  21. else{ alert("Le cifre del cap sono incorrette");}
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement