Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $$("#myform").validate({
  2.   rules: {
  3.     name: "required",
  4.     email: {
  5.       required: true,
  6.       email: true
  7.     }
  8.   },
  9.   messages: {
  10.     name: "Please specify your name",
  11.     email: {
  12.       required: "We need your email address to contact you",
  13.       email: "Your email address must be in the format of name@domain.com"
  14.     }
  15.   }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement