If you want to find the wrapping DIV element (regardless of the ID on that DIV) then you’ll want this jQuery selector:


$("a").hover(
  function () {
    // code on hover over
  },
  function () {
    // code on away from hover
  }
);

source

Tagged: