DiegoLopesLima / validate

A simple jQuery plugin to validate forms.
301 stars 217 forks source link

Multiple form use validate,but the first one can useful #66

Open unknown-kk opened 8 years ago

unknown-kk commented 8 years ago

As the title,i have 3 form has class ajax_form , $(".ajax_form").validate({...}) but the first one work ,others not

DiegoLopesLima commented 8 years ago

There may be a particularity in your case. But you can try to fix this problem using the jQuery.fn.each method:

$('.ajax_form').each({

    $(this).validate(/* {...} */);

});