jQuery: How to remove the tipsy tooltip?

前端 未结 9 1781
盖世英雄少女心
盖世英雄少女心 2021-01-08 01:17

I add the tipsy tooltip to divs with the .placeTaken class. The user can then drag boxes around, so I remove the class and add it to a new div instead. When this happens, I

9条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-08 01:47

    Using $(".tipsy").remove(); seems to do the trick since a div with a tipsy class is appended to the body of the doc when the tooltip is shown.

    Just be sure you don't use a tipsy class elsewhere (i.e. call your tooltip's something like toolTip instead)

提交回复
热议问题