You might want to add the change event to your inputs as well as shown in the example at mdn.
var inputs = $("form").find("input:not([type='submit'])"),
validate = function (input) {
var msg = "";
if (!input.validity.valid) {
if (input.validity.valueMissing) {
msg = "Esse campo é obrigatorio.";
}
if (e.target.validity.patternMismatch) {
msg = "Formato incorreto.";
}
}
input.setCustomValidity(msg);
};
inputs.on("change invalid", function (e) {
validate(e.target);
});