在jQuery模型对话框上调用函数close [英] calling a function on jQuery model dialog close
本文介绍了在jQuery模型对话框上调用函数close的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个与jQuery模态对话框有关的小问题.情况是这样的:
I have a small problem related to the jQuery modal dialog box. The scenario is such:
退出或关闭对话框时,必须按右上角的cross [x]按钮来调用函数.
I have to call a function when i exit or close the dialog box by pressing the cross[x] button on the top right.
推荐答案
$( ".selector" ).dialog({
close: function( event, ui ) {
//write your function here or call function here
}
});
这篇关于在jQuery模型对话框上调用函数close的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文