12

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

Community
  • 1
  • 1
Manas Babu
  • 202
  • 2
  • 4
  • 11

1 Answers1

26

Try this It ll work..

$(document).ready(function () {
    $("#dialog").dialog({  
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        modal: true,
        width:800
    });
});
Reigel Gallarde
  • 64,198
  • 21
  • 121
  • 139
Umakanta.Swain
  • 1,107
  • 2
  • 13
  • 24