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"

 Enter the image details here

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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -