2012-04-24 57 views
1

当我点击对话框内的东西时,我将如何关闭jQuery对话框?当我点击里面的东西时,我将如何关闭jQuery对话框?

$('content_in_the_dialog').click(function(){ 


    close the dialog 

}); 

这样的事情。所以我的问题是我应该输入什么代码来关闭对话框?

+0

什么样的对话? – 2012-04-24 17:21:09

+0

@JuanMendes jQuery类型我猜,OP标题说jQuery对话框 – 2012-04-24 17:23:48

+0

@Ronny,你的意思是'jQuery UI',它不是'jQuery'本身 – 2012-04-24 17:28:19

回答

4

直接让像下面close方法,

$('#dialog_selector').dialog('close'); 

http://jqueryui.com/demos/dialog/#method-close

+0

谢谢,很简单.. :) – 2012-04-24 17:26:28

+0

@Ronny随意接受它是正确的回答 – 2012-04-24 18:00:08

相关问题