I've checked my code and it works fine but for some reason I cannot open Dialog once it was closed. Any advice on why is that?
我检查了我的代码,它工作正常,但由于某种原因,我无法打开Dialog一旦关闭。对此有何建议?
The code is here - http://jsfiddle.net/EA2Dg/1/
代码在这里 - http://jsfiddle.net/EA2Dg/1/
1 个解决方案
#1
0
Why don't you use "click function to open the dialog, it should work
为什么不使用“单击功能打开对话框,它应该工作
HTML
HTML
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<button id="opener">Open Dialog</button>
JQuery:
JQuery的:
<script>
$(function(){
$("#opener").click(function(){
$("#dialog").dialog();
});
});
</script>
#1
0
Why don't you use "click function to open the dialog, it should work
为什么不使用“单击功能打开对话框,它应该工作
HTML
HTML
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<button id="opener">Open Dialog</button>
JQuery:
JQuery的:
<script>
$(function(){
$("#opener").click(function(){
$("#dialog").dialog();
});
});
</script>