hover element A, show/hide Element B

前端 未结 4 350
长发绾君心
长发绾君心 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条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 15:25

    $('#divwithimage').hover(
           function(){$('#ptag').show();}, //shows when hovering over
           function(){$('#ptag').hide();} //Hides when hovering finished
    );
    

提交回复
热议问题