我已经检查了我的代码并且它工作正常但由于某种原因我无法在关闭后打开Dialog。关于为什么会有这样的建议吗?
代码在这里 - http://jsfiddle.net/EA2Dg/1/
答案 0 :(得分:0)
为什么不使用“点击功能打开对话框,它应该工作
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的:
<script>
$(function(){
$("#opener").click(function(){
$("#dialog").dialog();
});
});
</script>