I have custom ErrorPlacement function in my validator, which displays error in tooltip:
errorPlacement: function (error, element) {
var lastError = $(element).data('lastError'),
newError = $(error).text();
$(element).data('lastError', newError);
if (newError !== '' && newError !== lastError) {
$(element).tooltipster('content', newError);
$(element).tooltipster('show');
}
},
This works fine, but I would also need to display "Please, fill in all required fields" message on top of the form.
How can I do that with jQuery Validate?