$(function () { $("tr").mousemove(function () { $(this).css("background-color", "pink"); }).mouseout(function () { $(this).css("background-color", "White"); }) })