YaWK  24.1
Yet another WebKit
booking.js
Go to the documentation of this file.
1 /*
2  * Author: Daniel Retzl
3  * Email: [email protected]
4  * function set text on select in frontend
5  */
6 $(document).ready(function () {
7  $('#form').validate({ // initialize the plugin
8  rules: {
9  name: {
10  required: true,
11  minlength: 3
12  },
13  message: {
14  required: true
15  },
16  email: {
17  required: true,
18  email: true,
19  maxlength: 128
20  },
21  phone: {
22  required: true
23  }
24  },
25  messages: {
26  name: {
27  required: "Please enter your name (or pseudonym).  "
28  },
29  email: {
30  required: "Please enter a valid email address.  "
31  },
32  phone: {
33  required: "Please enter your phone number.  "
34  },
35  message: {
36  required: "Please enter your message.  "
37  }
38  }
39  });
40 });
document ready(function() { $('#form').validate({ rules:{ name:{ required:true, minlength:3 }, message:{ required:true }, email:{ required:true, email:true, maxlength:128 }, phone:{ required:true } }, messages:{ name:{ required:"Please enter your name (or pseudonym).  " }, email:{ required:"Please enter a valid email address.  " }, phone:{ required:"Please enter your phone number.  " }, message:{ required:"Please enter your message.  " } } });})
$template name