SHARE
TWEET

Untitled

a guest Mar 20th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#jValidate').validate({
  2.   rules:{
  3.     username:{
  4.       required:true,
  5.       minlength:6
  6.     },
  7.     email:{
  8.       required:true,
  9.       email:true
  10.     },    
  11.     password:{
  12.       required:true,
  13.       minlength:8
  14.     },
  15.     confirm:{
  16.       required:true,      
  17.       equalTo:"#password"
  18.     }    
  19.   },
  20.   messages:{
  21.     username:{
  22.       required:"Username is required",
  23.       minLength:"Username must be at least 6 characters"
  24.     },
  25.     password:{
  26.       required:"Password is required",
  27.       minLength:"Password must be at least 8 characters"
  28.     },
  29.     confirm:{
  30.       required:"You must confirm your password",
  31.       equalTo:"Password Confirmation does not match"
  32.     }
  33.   }
  34. });
  35. $('#jValidate .form-control').keyup(function(){
  36.   if($('#jValidate').valid()){
  37.     $('#signup').show();
  38.     $('#disabled').hide();  
  39.   }
  40. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top