I'm seeing lots of spelling mistakes on your page.
A per your OP, these are your rules
...
rules: {
email1: "required",
email2: {
equalTo: "#email1"
},
phone: {
minlength: 10,
maxlength: 10
},
fullname: { // <-- no such field defined
minlength: 2
}
},
messages: {
name: "Please enter your full name.", // <-- no such field or rule
email1: "Please enter a valid email.",
phone: "Phone number must be 10 characters (include area code).",
},
However, as per your page, there is no such field called fullname
. Your actual HTML is this:
<input name="firstname" ....
And in your messages
section, you defined a message for name
but there is no field in your form with name="name"
, nor is there any rule called name
.
Your Validation code is working: http://jsfiddle.net/zPQJb/
Side note: There is no reason to have class="require"
on an input
field when you've already specified a compound rule within .validate()
containing required
. It's redundant.
The very first error on your page:
"$('#content_contactus').ahow is not a function"
ahow
is probably supposed to be show
.
You'll need to resolve this as well as the dozens of other JavaScript errors on your page, (seemingly caused by many spelling errors), before you can expect any of the remaining JavaScript to function properly.