问题
Currently, I'm using errorPlacement to print error message for each input :
$('#my_form').validate({
    errorPlacement: function(error, element) {
         // Some code that print error below each inputs
    },
    ...
Then, I tried to centralize errors messages with showErrors, like this :
    showErrors: function(errorMap, errorList) {
         // Some code that centralize each error for each input in one place
    },
    ...
});
It works fine, except that now I would like to centralize only some errors messages of my form, not all of them. Something like using showErrors only for inputs that I want to centralize, then errorPlacement for the others.
回答1:
Something like using
showErrorsonly for inputs that I want to centralize, thenerrorPlacementfor the others.
One will always over ride the other.
You'll have to use showErrors for everything, where you inspect the errorMap and errorList and conditionally place each message where you need it. 
回答2:
You can use text-align:center; property in css.
来源:https://stackoverflow.com/questions/42224986/centralize-some-error-messages-from-my-form