[jQuery] Re: completely resetForm

2008-07-11 Thread caseyw
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();

[jQuery] Re: completely resetForm

2008-07-10 Thread Jörn Zaefferer
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 =

[jQuery] Re: completely resetForm

2008-07-09 Thread Abba . Bryant
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