I have a table. Table id - resultTable. Some of the rows in the table have a class.
How can I remove these classes from this table.
I use the code below to add a class
$('#resultTable tr').click(function (event) { $(this).addClass("test"); });
To remove the class test from the whole table, I tried the code below
$('#resultTable').removeClass("test");
But its not working. Any ideas?
jquery html
Null pointer
source share