I am using jquery validation plugin. I am using the following function to display default error messages in next td(column) of the element of table.
$(obj).find("form").validate({
errorElement: "div",
wrapper: "div",
errorPlacement: function(error, element) {
error.appendTo( element.parent().next() );
}
});
This function is showing default messages but I want to display my own error messages.
For example I want this:
<img id='error' src='images/crosssign.gif' />")Please fill this field.
instead of:
"This field is required."
Thanks in advance.