Jquery: How hide or close all open bootstrap tooltip

前端 未结 5 1833
温柔的废话
温柔的废话 2021-02-20 08:42

This way I am showing bootstrap tooltip from my validation function.

var options = { html: true, placement: \'bottom\', title: \'
5条回答
  •  庸人自扰
    2021-02-20 09:23

    this will help close tooltip at any button, any id

    $(document).on("click","button",function(){$(this).trigger("blur")})
    $(document).on("mouseup","button",function(){$(this).trigger("blur")})
    $(document).on("mousedown","button",function(){$(this).trigger("blur")})
    

    Tooltip will close button's tooltip on button click

提交回复
热议问题