jquery tooltip, but on click instead of hover

后端 未结 3 639
傲寒
傲寒 2020-12-10 07:12

We were using \'title\' attributes to display something on mouseover. We want it now to display on a click. How can I get a floating box that looks like a title/tooltip, b

3条回答
  •  臣服心动
    2020-12-10 07:49

    Would like to add to iftrue's answer that you can grab (and remove) the title attribute in the mouseenter event and place it back in the mouseleave. This to prevent the browser from showing the hover, but still using the attribute to store the text.

提交回复
热议问题