开发者

Disable close button in Jquery UI Dialog [duplicate]

开发者 https://www.devze.com 2023-01-17 16:54 出处:网络
This question already has answers here: 开发者_StackOverflow Closed 10 years ago. Possible 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

精彩评论

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