I have a table .Table id is resultTable. Some of the rows in the table have a class.
How can i remove those classes from that table.
I am using the code given below to add the class
$('#resultTable tr').click(function (event) {
$(this).addClass("test");
});
TO remove the class test from the entire table , i tried the code given below
$('#resultTable').removeClass("test");
But its not working.Any ideas?
You forgot a tr
$('#resultTable tr').removeClass("test");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With