Guest User

Untitled

a guest
Jan 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  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. });
Add Comment
Please, Sign In to add comment