Skip to content
Advertisement

Remove css class of element

(Django) I have a table that I am attempting to hide if it is empty. I have mostly achieved this the only issue is that the CSS styling is still present after “removing” the table.

How do I remove all of the CSS styling for a particular element?

code:

JavaScript

Advertisement

Answer

You can hide whole table, if is empty:

JavaScript
Advertisement