$("#id").hover(A, B);

 
Where A denotes the function to call when the mouse enters the matched element 
and B when the mouse leaves the matched element. 
JQuery Snippets Code

<script type="text/javascript">
   $("tr").not(':first').hover(
  function ()
  {
     $(this).css("background", "yellow");
  },
  function ()
  {
     $(this).css("background", "");
  }
);
</script>