[jQuery] Re: validate() and multiple forms that arrive via ajax

2008-05-12 Thread pedalpete
I've been having similar issues, and your solution really helped, but i think it introduced another problem. if I retrieve the same form again, so loaded the form a second time via ajax, the form tries to validate, but then submits anyway. Kinda strange. My code looks like this [ code]

[jQuery] Re: validate() and multiple forms that arrive via ajax

2008-04-18 Thread Jan Limpens
In the meantime I refactored this to: function setupForm(form, target){ $(input.ajax-invisible).hide(); $(form).validate({ currentForm : $(form) }); if ($(target) != null) { $(form).ajaxForm({ beforeSubmit:

[jQuery] Re: validate() and multiple forms that arrive via ajax

2008-04-18 Thread Jan Limpens
solution for dynamically loaded, multiple ajax forms with jquery validate: function setupForm(form, target){ $(input.ajax-invisible).hide(); $(form).validate({ // ataches the validator currentForm : $(form), submitHandler: function() { submit(form,