Hi Jörn,
I have basically this, and still a no go.
var nameForThisValidator = $(#formName).validate();
$(#closeLogin).click(function (event) {
nameForThisValidator.resetForm();
nameForThisValidator.submitted = {};
document.forms['formName'].reset();
$(#loginLink).show();
This works for me:
var validator = $(#myform).validate();
$(.cancel).click(function() {
validator.resetForm();
validator.submitted = {};
});
I just commited a patch that resets submitted when calling resetForm,
so this will work, too, once you update:
var validator =
try using the validation plugins resetForm method? I don't know for
sure if it will work but looking at the source Jorn linked it seems
likely.
On Jul 9, 6:33 am, caseyw [EMAIL PROTECTED] wrote:
Hi Jörn, thank you for responding.
I've tried adding the validator.submitted = {}; and it doesn't
3 matches
Mail list logo