jQuery的UI对话框(带输入)不要破坏 [英] jquery ui dialog (with input) dont destroy
本文介绍了jQuery的UI对话框(带输入)不要破坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对话框中有一个文本区域,它具有一个ID. 如果我想获取文本区域的内容,则它会在每次第一个给定值时显示.因此,如果我关闭并重新打开它,它将无法识别所做的更改.这个问题应该解决.
There is a text area within the dialog and it has an id. If I want to get the content of the text area it shows every time the first given value. So if I close and reopen it, it does not recognize the changes. This problem should be solved.
我认为关闭的对话框可能没有被很好地破坏.
I think maybe the closed dialog's are not well destroyed.
推荐答案
代替:
dialog('close');
做到这一点:
dialog().remove();
这篇关于jQuery的UI对话框(带输入)不要破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文