|
I have a table with a class name of dataTable. This table also has TR's with a class of either primary or alternate. When someone mouses over a TR I want the background color to change. So i try using this, but it keeps telling me that .removeClass or addClass is not a function. What am I doing wrong?
$('table.dataTable tr').bind('mouseover',function(){this.removeClass( 'primary').removeClass('alternate').css("backgroun d-color", "999");}, false);
|