work ok:
errorPlacement:
function(error, element) {
error.appendTo( element.parent());
},
fail:
errorPlacement:
function(error, element) {
error.appendTo( element.parent());
$(element).prop("title", error.text());
},
With second snippet I see only the first error. For example I have input that is "required" and "number" - submit form - required error is shown - fill in letters - required error is shown.
Dubbuging the errorPlacement I can see that error DOM is always the same.
Thanks in advance for any help!
PS: Goal: I want to show errors as tool-tips.
titleproperty of the invalid element to achieve that. But are you reverting this action in a success callback if/when the element becomes valid again?