hover(over, out)の使い方

div


$("div").hover(
  function() {
    $(this).addClass("hilight");
  },
  function() {
    $(this).removeClass("hilight");
  }
);
$("span").text("hoverイベントを登録しました.");  

<div>div</div>

<span></span>