Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function faiCose(){
- contPass();
- contCap();
- }
- function contPass() {
- var pass = document.getElementById("inputPassword").value;
- if(pass.length < 8){
- alert("La pass รจ troppo corta");
- return false;
- } else {
- return true;
- }
- }
- function contCap() {
- var cap = document.getElementById("inputCap").value;
- if(cap.length=5){
- return true;
- }
- else{ alert("Le cifre del cap sono incorrette");}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement