Skip to content

Conversation

ddstreet
Copy link
Contributor

This finds an associated label even if the checkbox and label do not share a common ancestor.

Really, it would be ideal for jQuery itself to add a function to do this, since this is probably not the only place where something like this is needed...

…92 - button creation that requires a matching label does not find label in all cases
@scottgonzalez
Copy link
Member

Thanks, can you add a test for this? Also, here's a shorter patch: https://gist.github.com/864880

@ddstreet
Copy link
Contributor Author

That patch works great, and I committed a test case update in my fork:
ddstreet@893c54a

Let me know if you want me to submit a pull request for that test case commit.

Thanks!

@ddstreet
Copy link
Contributor Author

Hmm, I guess I don't understand how pull requests work yet, I didn't mean for my other commits to show up in this pull request, sorry! :-)

Anyway, feel free to close this pull request out since you've got a shorter patch for it.

Thanks!

@scottgonzalez
Copy link
Member

Thanks, landed in 0b30a1d.

thg2k pushed a commit to thg2k/jquery-ui that referenced this pull request Oct 18, 2011
thg2k pushed a commit to thg2k/jquery-ui that referenced this pull request Oct 18, 2011
thg2k pushed a commit to thg2k/jquery-ui that referenced this pull request Oct 18, 2011
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants