0
我的问题是,我有一个jQuery对话框,按钮是和不。jquery对话框没有按钮
我想要做的是,当用户单击否,对话框显示 隐藏类中的另一个内容,并且用户再次单击否关闭对话框。
我试着找到解决方案,但无法找到任何。
这是我有这么远,但AINT工作:
"No": function() {
$("#dialog").html($("#cool"));
if ($("#cool") == true) {
$(this).dialog("close");
}
}
到目前为止你有什么? – Dev
这是我迄今为止,但没有工作:“否”:function(){(“#dialog”)。html($(“#cool”)); ($(“#cool”)== true) $(this).dialog(“close”); } – pumba
@pumba,在格式化你的代码后,我会说你可能在第二行中错过了对'html()'的调用,我不确定你想用'if'条款。 –