Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable close button in Jquery UI Dialog [duplicate]

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

like image 453
Manas Babu Avatar asked Sep 28 '10 07:09

Manas Babu


1 Answers

Try this It ll work..

$(document).ready(function () {
    $("#dialog").dialog({  
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        modal: true,
        width:800
    });
});
like image 191
Umakanta.Swain Avatar answered Sep 20 '22 05:09

Umakanta.Swain