Material-design-lite: componentHandler.upgradeElements() don't work with jQuery selector

Created on 21 Oct 2015  路  3Comments  路  Source: google/material-design-lite

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?

Most helpful comment

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

All 3 comments

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

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.

Thank you, @surma!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baldram picture baldram  路  4Comments

shazada picture shazada  路  5Comments

traviskaufman picture traviskaufman  路  5Comments

dryror picture dryror  路  5Comments

itisparas picture itisparas  路  3Comments