duggieuk
02-01-2011, 04:21 PM
]Hi
I'm using the following code to show validation errors on a form. It works fine but i would like the errors(which are within a hidden div) to fade in. Anyone know how to do this. Also if the user enters all the information correctly is it possible to show up a thank you message in place of the error message. Thanks for all your help.
[CODE]
$(function() {
$("#form").validate({
errorContainer: "#error",
errorLabelContainer: ".error_list",
wrapper: "li",
rules: {
name: {
required: true,
minlength: 2
},
email: {
required: true,
email: true
},
message: {
required: true,
minlength: 2
},
}
});
});
[/CODE
I'm using the following code to show validation errors on a form. It works fine but i would like the errors(which are within a hidden div) to fade in. Anyone know how to do this. Also if the user enters all the information correctly is it possible to show up a thank you message in place of the error message. Thanks for all your help.
[CODE]
$(function() {
$("#form").validate({
errorContainer: "#error",
errorLabelContainer: ".error_list",
wrapper: "li",
rules: {
name: {
required: true,
minlength: 2
},
email: {
required: true,
email: true
},
message: {
required: true,
minlength: 2
},
}
});
});
[/CODE