daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jan 19th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2. $.validator.setDefaults({
  3.     submitHandler: function() { alert("submitted!"); },
  4.  
  5.     highlight: function(input) {
  6.         $(input).addClass("invalidBox");
  7.     },
  8.     unhighlight: function(input) {
  9.         $(input).removeClass("invalidBox");
  10.     }
  11. });
  12.    
  13.     // validate signup form on keyup and submit
  14.     $("#10792124395").validate({
  15.  
  16.         rules: {
  17.             input_23: "required",
  18.             input_24: "required",
  19.  
  20.             input_22: {
  21.                 required: true,
  22.                 email: true,
  23.                 minlength: 7,
  24.             },
  25.  
  26.         messages: {
  27.             input_23: "Please enter your title",
  28.             input_24: "Please select your nationality",
  29.             input_22: {
  30.                 required: "Please enter a vail email address",
  31.                 minlength: "Your email must consist of at least 7 characters"
  32.             }}
  33.  
  34. });
  35.  }});*/
  36.  
  37.         $(document).ready(function() {
  38.           $("#10792124395").validate({
  39.             rules: {
  40.               input_23: "required",// simple rule, converted to {required:true}
  41.               input_22: {// compound rule
  42.               required: true,
  43.               email: true
  44.             },
  45.            
  46.   });
  47.  });
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
 
Top