javascript - remove jquery elements that do not have a class -
Hello can someone help me to get all the elements of jquery that do not have any classes.
I is a list and I want to receive all those who do not have any class and delete it
There is a code here till now
var listTableHeaders = $ (. "Benefits list on cost") ("th"); . Remove ListTableHeaders.not ("sorting"); I realized that this picture contains classes other than "sorting"
I can only remove elements that are not" sorting "or" sorting_disabled ", but I'm not sure whether there are other classes It would be more convenient to remove that which is not a class.
Thanks
You can filter it
listTableHeaders.filter (function () {return! $ (This) .is ('[class]');}) Remove ();
Comments
Post a Comment