try this if the element is static:
var $row = $('#row'); $row.mouseover(function(){ $row.css('background-color','red'); });
use this if the element is dynamically placed on the page:
var $row = $('#row'); $row.on('mouseover',function(){ $row.css('background-color','red'); });
source share