1$( "#myform" ).validate({
2
3 rules: {
4
5 email: {
6
7 required: true,
8
9 email: true,
10
11 remote: {
12
13 url: "check-email.php",
14
15 type: "post",
16
17 data: {
18
19 username: function() {
20
21 return $( "#username" ).val();
22
23 }
24
25 }
26
27 }
28
29 }
30
31 }
32
33});
34
35