开发者

jQueryUI dialog won't go modal

开发者 https://www.devze.com 2023-01-03 06:13 出处:网络
I need a modal dialog to open ontop of an tinyMCE editor and o开发者_Go百科ther jQuerified items. I followed the jquery site but its not modal, I can still change and access the rest of the page.

I need a modal dialog to open ontop of an tinyMCE editor and o开发者_Go百科ther jQuerified items. I followed the jquery site but its not modal, I can still change and access the rest of the page.

$('#sureDelete').dialog({
                    modal: true,
                    buttons: {
                        "Yes": function(){
                            $('li#'+$id).remove();
                        },
                        "No":function(){
                        }
                    },
                    draggable: false
        });
<div id="dialogs">

<div id="sureDelete">Are you sure you want to delete this page?</div> </div> Also I don't have any styling added to the dialog. Can that be an issue?


You need to make sure you include the jQueryUI base css file.
I.E.:

<link rel="stylesheet" href="*jQueryUIDir*/css/*themeDir*/jquery-ui-*version*.custom.css"  type="text/css" />
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号