I have a form that can be filled, saved, loaded and re-edited.
When it is loaded and re-edited, it probably begins its life valid. When a field is valid upon
I've dug into the validation plug-in, and opened a ticket for what I believe is a defect.
https://github.com/jzaefferer/jquery-validation/issues/146
Shannon
This constructor works for me:
$('form').validate({
onfocusout: function(element) {
this.element(element);
}, ...
});
You could try validating the form manually each time an input was changed.
$(":input").live("change", function(){
form.validate();
})
From looking at the documentation it seems that you can't call form.valid()
without calling form.validate();
first.