Hi, I am using the jQuery form validation plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/And I know that the default text is "This field is required." And I want to replace it with an IMG tag. But I donβt want to change it in real PLUGIN, and I wonder if this can be done only in general terms through the plugin parameters. I tried many options, but came up with this shortened version.
$(document).ready(function(e) {
$("#validationTest").validate({
rules: {
defaults: {
messages: {required: "<img src='images/required.png' />"}
}
},
submitHandler: function(form) {
$(form).submit();
}
})
});
But this still does not work ... any thoughts or direction will be appreciated.
source
share