Advertisement
tjromano

validate

Jul 23rd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.65 KB | None | 0 0
  1. <script type="text/javascript">
  2.     // validate signup form on keyup and submit
  3.     $("#icesApp").validate({
  4.         rules: {
  5.             name: "required",
  6.             address: "required",
  7.             citystatezip:  "required",
  8.             homePhone:  "required",
  9.             email: {
  10.                     required: true,
  11.                     email: true
  12.                     },
  13.             sign: "required"
  14.         },
  15.         messages: {
  16.             name: "Please enter your name",
  17.             address: "Please enter your address",
  18.             citystatezip: "Please enter your city state and zip",
  19.             homePhone: "Please enter your home phone number",
  20.             email: "Please enter a valid email address",
  21.             sign: "Please sign that you accept our terms"
  22.         }
  23.     });
  24. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement