I have table which class is forum. My jquery code:
Try this , its working and simple
HTML
test
Javascript
$(document).ready(function() {
var colorOrig=$(".forum").css('background-color');
$(".forum").hover(
function() {
//mouse over
$(this).css('background', '#ff0')
}, function() {
//mouse out
$(this).css('background', colorOrig)
});
});
css
.forum{
background:#f0f;
}
live demo
http://jsfiddle.net/caBzg/