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

componentHandler.upgradeElements() don't work with jQuery selector #1793

Closed
J2TEAM opened this issue Oct 21, 2015 · 3 comments
Closed

componentHandler.upgradeElements() don't work with jQuery selector #1793

J2TEAM opened this issue Oct 21, 2015 · 3 comments

Comments

@J2TEAM
Copy link

J2TEAM commented Oct 21, 2015

Hi!

I have a table with dynamic data added from JavaScript. This table has a checkbox column, so I need to render the checkboxes using the upgradeElements function.

It's worked with plain JavaScript:

e2

but not work with jQuery though using the same selector.

e1

So, how I can use this function using jQuery?

@surma
Copy link
Contributor

surma commented Oct 21, 2015

jQuery doesn’t return the DOM object but a jQuery object. IIRC, $('...').get() should work.

@surma
Copy link
Contributor

surma commented Oct 21, 2015

Also, questions like these belong on StackOverflow with the material-design-lite tag. The GH issue tracker is for bugs, issues and feature requests only.

@surma surma closed this as completed Oct 21, 2015
@J2TEAM
Copy link
Author

J2TEAM commented Oct 21, 2015

Thank you, @surma!

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

3 participants
@surma @J2TEAM and others