开发者

Disable close button in Jquery UI Dialog [duplicate]

This question already has answers here: 开发者_StackOverflow Closed 10 years ago.

Possible Duplicate:

Remove close button on jQueryUI Dialog?

I am getting some problem to disable close button in JQuery UI Dialog.

My code is like bellow.

$(document).ready(function () {
     $("#dialog").dialog({ 
            modal: true,
            width:800
     });
});

Thanx in Advance


Try this It ll work..

$(document).ready(function () {
    $("#dialog").dialog({  
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        modal: true,
        width:800
    });
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜