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

Doesn't validate collapsed content when used w/ jQuery Mobile #299

Closed
adammessinger opened this issue Jan 6, 2012 · 2 comments
Closed

Comments

@adammessinger
Copy link

If used with jQuery Mobile 1.0, the validation plugin doesn't catch invalid fields within collapsible content blocks that are collapsed when the form is submitted. I've been able to work around this by expanding any collapsed blocks onsubmit:

$('#form_to_validate').submit(function() {
    $(this).find('.ui-collapsible-heading-collapsed').click();
});
@mlynch
Copy link
Contributor

mlynch commented Apr 18, 2012

Would the fix for #279 help you?

It seems that the issue is the ignore option skipping the hidden content blocks.

@mlynch
Copy link
Contributor

mlynch commented Apr 19, 2012

Yes this is an issue with hidden content. Please try adding the ignore: "" option and if that does not fix it, please reopen with more info.

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

No branches or pull requests

2 participants