Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make jquery-ui-dialog not have a close button?

I didn't find this in the documentation.

Should I just make the close button display:none with css, or is there a clean way in the API to make a dialog without the X button (top-right)?

like image 806
ripper234 Avatar asked Jan 30 '26 22:01

ripper234


1 Answers

This may solve your Problem:

       $("#dialogId").dialog({
           closeOnEscape: false,
           open: function(event, ui) { $(".ui-dialog-titlebar-close", ui.dialog).hide(); }
       });
like image 135
Chris Avatar answered Feb 02 '26 11:02

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!