Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password.blur(function() {
- if ($(this).val().length == 0) {
- hideErr(this);
- showAlert(this);
- } else {
- if ($(this).val().length < 5 || $(this).val().length > 8 || !/^(([\d]+[\D]+)*([\D]+[\d]+)*)$/.test($(this).val())) {
- hideAlert(this);
- showErr(this);
- } else {
- hideErr(this);
- hideAlert(this);
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement