jQuery的工具提示不会消失(jquery tooltip not disappearing)

编程入门 行业动态 更新时间:2024-10-27 01:33:05
jQuery的工具提示不会消失(jquery tooltip not disappearing)

我为我的页面中的所有元素激活了jquery tooltip。 其中一个元素是一个AJAX'Submit'按钮,它立即被禁用(点击)然后消失(包含它的div被AJAX响应覆盖)

我的问题是,即使按钮被点击/消失,工具提示仍然保持在屏幕上。 已经尝试了这些代码,但没有用(不是所有的一起,但任何一个):

$("#signup").tooltip({events: {input: 'click, blur'}}); $("#signup").tooltip("disable"); $("#signup").tooltip().hide(300); $("#signup").tooltip("close");

其次是

document.getElementById('signup').disabled=true;

然后进行Ajax调用。

请帮忙!

I have jquery tooltip activated for all elements in my page. One of those elements is an AJAX 'Submit' button that is immediately disabled (on click) and then vanishes (the div containing it is overwritten by the AJAX response)

My problem is that the tooltip continues to remain on screen even after the button is clicked/vanishes. Have tried these codes, but to no use (no all together, but any one):

$("#signup").tooltip({events: {input: 'click, blur'}}); $("#signup").tooltip("disable"); $("#signup").tooltip().hide(300); $("#signup").tooltip("close");

followed by

document.getElementById('signup').disabled=true;

and then the Ajax call.

Please help!

最满意答案

您可以使用remove()删除工具提示

$(".ui-tooltip-content").parents('div').remove();

You can use remove() to remove the tooltip

$(".ui-tooltip-content").parents('div').remove();

更多推荐

本文发布于:2023-07-24 08:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1243450.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:提示   工具   jQuery   disappearing   tooltip

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!