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

2
  • what are these "some problem"? Commented Sep 28, 2010 at 7:22
  • I was not getting how to disable the close button. Commented Sep 28, 2010 at 7:27

1 Answer 1

26

Try this It ll work..

$(document).ready(function () {
    $("#dialog").dialog({  
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        modal: true,
        width:800
    });
});
Sign up to request clarification or add additional context in comments.

1 Comment

Can't believe this isn't an option in creating the dialog!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.