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();更多推荐
发布评论