hover element A, show/hide Element B

前端 未结 4 382
长发绾君心
长发绾君心 2021-01-13 15:11

I have a

element containing an image. Inside that div, I have a

element which holds some information about the image. I want

4条回答
  •  萌比男神i
    2021-01-13 15:52

          $("css_selector_of_img").hover(
          function () {
            $("css_selector_of_p_element").show();
          },
          function () {
            $("css_selector_of_p_element").hide();
          }
          );
    

    See http://docs.jquery.com/Events/hover

提交回复
热议问题