Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
unknown-kk opened this issue Nov 22, 2016 · 1 comment
Open

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

unknown-kk opened this issue Nov 22, 2016 · 1 comment

Comments

@unknown-kk
Copy link

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

@DiegoLopesLima
Copy link
Owner

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(/* {...} */);

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants