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]
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:
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,
3 matches
Mail list logo