I am working on an in application solution for affords me limited page real estate and therefore cannot apply contained error messages for every required field. I therefore am trying to create a solution that would highlight the affected required fields and only create a custom message for specified fields like email address, telephone and password in my form.
I am presently working with the basic shell(which is working fine for contained messages)
var v = $("form").validate({
rules: {
email: {
required: true,
email: true
},
confirmEmail: {
required: true,
email: true,
equalTo: "#email"
}
},
messages: {
email: "Please enter a valid email address",
confirmEmail: {
required: "Please enter a valid verify email address",
equalTo: "Both email addresses must be the same."
}
},
errorContainer: errcontainer,
errorLabelContainer: $("ol", errcontainer),
wrapper: 'li',
onkeyup: false,
onblur: false
});
Thanks in advance for any help or advice.