Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PasswordValidation(password)
- {
- var pass = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}$/;
- if(password.value.match(pass))
- {
- alert('Correct!')
- return true;
- else
- {
- alert('Wrong!')
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement