[jQuery] [validate] problems with invalid-form.validate and remote rules

[jQuery] [validate] problems with invalid-form.validate and remote rules


Hi, I try to show a list of errors in an alert box when the form is
cancelled by jQuery Validator.
Surfing the web I see that I can use invalid-form.validate like this:
        $('#bpwcForm').bind('invalid-form.validate', function(e, validator)
        {
var errors = validator.numberOfInvalids();
alert('ERR ' + errors);
});
but this function is NOT executed when a submit form is cancelled by a
remote rule.
any suggestion or work-arround?
thanks
Àlex Corretgé