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

Not submit values if select not is a form's descendant #227

Open
adaniello opened this issue Mar 21, 2023 · 0 comments
Open

Not submit values if select not is a form's descendant #227

adaniello opened this issue Mar 21, 2023 · 0 comments

Comments

@adaniello
Copy link

Hi, there is a little improvement required: your code use closest('form') to detect the parent form, required to detect a submit event.

But in HTML5 we can use "form" attribute that enables placing an , , or other form field anywhere within a document, not just as descendants of a elements.

Your code should detect a form as self.$right.closest('form') or as $('#' + self.$right.attr('form')).

Thanks

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

1 participant