$("#gridID tr:not(tr:last-child)").filter(function () {return $("td", this).length && !("table", this).length}).hover(function () {$(this).toggleClass("hover_css");});