[jQuery] [validate] success:
just wondering if I'm using an errorContainer and an
errorLabelContainer how can I make an image appear next to each valid
input box?
this is what I have
var container = $('div.errors');
// validate the form when it is submitted
var validator = $("#newclient").validate({
errorContainer: container,
errorLabelContainer: $("ol", container),
wrapper: 'li',
meta: "validate",
submitHandler: function(form) {
$("#add-form").fadeOut("slow",function() {
$(form).ajaxSubmit(options);
return false;
});
}
success: function(label) {
// set as text for IE
label.html(" ").addClass("valid");
}
});
but whenever an input is valid it will only display the image inside
of the container which is outside of the form...