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
Validation ignores elements outside <form> but with form attribute #2156
Comments
Still valid |
Hi there, I don't really have the time for working on this issue. Would you or anyone like to add support for this? I'd be more than happy to walk you through the steps involved. Thanks! |
not workingThe form elements outside of the form
partial working
proceed?Are there workarounds? |
I started on https://github.com/SimonHeimberg/jquery-validation/tree/relatedElementsOutsideForm, but will have to read styleguide, ... |
Dont worry about the styleguide. Just submit the PR, in case its working as expected we can fix the CS or at least provide you some guidance |
pr is #2231 |
The plugin does not validate elements that are outside of the This issue occurred because in the plugin we only find input fields which are the child of form but we did not get all fields which are outside the form but associated with the form. after analyzing the code I found the solution, at line no. 646 Did small change and it works for me.
Changed above code to this and also removed error context from the error function. Then the plugin validates the input fields which are associated with form but present at outside the form. |
@garima2094 thx for this information. are you willing to provide a Pull Request and Unit Tests for this feature? |
Any news on this? |
Looks like issue is still active in the current release 1.19.1, is their any updates on this. |
I would like to inform you that I am also being affected by this issue. |
Hi
|
Seems like this issue is still relevant in 1.19.3. Both PRs mentioned in this issue seem to be left open with all checks passing and no unresolved comments, is there any plan on reviewing/merging them? |
@vmtco can you check this, thank you. |
Subject of the issue
The plugin does not validate elements that are outside of the
<form>
but have theform
attribute on them.Your environment
jquery-validate
: 1.17.0Steps to reproduce
See https://jsfiddle.net/robertmiles3/hpundyj5/4/
Expected behaviour
On submit, validation should fail for both inputs.
Actual behaviour
On submit, validation only fails for the input inside the
<form>
.The text was updated successfully, but these errors were encountered: