jquery对话框无法正确隐藏

时间:2013-10-17 18:15:08

标签: jquery dialog hide

我有一个asp.net页面。单击div时对话框会打开,但不会关闭。看看其他例子..我认为它应该有效,但事实并非如此。这是代码(我正在使用母版页)。再次......对话框确实打开了。

    <script type="text/javascript">
    $(document).ready(function () {
        $("#dialog").dialog({
            autoOpen: false,
            show: {
                effect: "blind",
                duration: 1000
            },
            hide: {
                effect: "explode"
                ,duration: 1000
            }
        });
        $("#opener").click(function () {
            $("#dialog").dialog("open");
        });
    });
</script>
<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>
<br />
<br />
<div id="opener">TestIt</div>

0 个答案:

没有答案