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

a mistake in 1.8 Form #101

Closed
tatesuke opened this issue Apr 10, 2016 · 2 comments
Closed

a mistake in 1.8 Form #101

tatesuke opened this issue Apr 10, 2016 · 2 comments

Comments

@tatesuke
Copy link
Contributor

1.8 Form -> Get index of e.currentTarget between .radio

// jQuery
$(e.currentTarget).index('.radio');

// Native
[].indexOf.call(document.querySelectorAll('.radio'), e.currentTarget);

I think jQuery code is :

$('.radio').index(e.currentTarget);
@camsong
Copy link
Owner

camsong commented Apr 11, 2016

Both are supported, if you like the second version, you and make a PR to add it as well.

@camsong camsong closed this as completed Apr 11, 2016
@tatesuke
Copy link
Contributor Author

Oh, it was true.
I apologize for my lack of study...

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