Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Use form.elements to find inputs#520

Open
andrews05 wants to merge 1 commit into1000hz:masterfrom
andrews05:elements
Open

Use form.elements to find inputs#520
andrews05 wants to merge 1 commit into1000hz:masterfrom
andrews05:elements

Conversation

@andrews05
Copy link

This PR changes the way inputs are found within the form. Instead of $element.find() it uses $($element[0].elements).filter(). This is much faster than using find and has the added advantage of including inputs outside of the form that are associated using the form attribute. It also fixes #519.

@1000hz
Copy link
Owner

1000hz commented Mar 21, 2017

I didn't know about this attribute and you're right about the performance boost. I haven't had time to give it a serious review, but I'll likely merge it soon. Thanks for this PR!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Radio inputs from other forms can interfere

2 participants