Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. password.blur(function() {
  2.         if ($(this).val().length == 0) {
  3.             hideErr(this);
  4.             showAlert(this);
  5.         } else {
  6.             if ($(this).val().length < 5 || $(this).val().length > 8 || !/^(([\d]+[\D]+)*([\D]+[\d]+)*)$/.test($(this).val())) {
  7.                 hideAlert(this);
  8.                 showErr(this);
  9.             } else {
  10.                 hideErr(this);
  11.                 hideAlert(this);
  12.             }
  13.         }
  14.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement