4

How do I create a jQuery popup window without close button? Please see my code below.

$('#addNewRecord').dialog(
    {
        autoOpen: true,
        width: 570,
        bgiframe: true,
        resizable: false,
        height:490,
        modal: true
    }
    );

Could anyone please help me ?

Isabel Jinson
  • 8,541
  • 16
  • 59
  • 75

3 Answers3

1

Please refer How to remove close button on the jQuery UI dialog?

Community
  • 1
  • 1
jebberwocky
  • 1,123
  • 3
  • 11
  • 24
1

Or how about Best way to remove the close button on jQuery UI dialog box widget?

Community
  • 1
  • 1
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
1

You are using jQuery dialog, so simply add the below code

jQuery('.ui-dialog-titlebar-close').hide(); or

$('.ui-dialog-titlebar-close').hide();

within the jQuery(document).ready();

Nagarajan Ganesh
  • 573
  • 1
  • 5
  • 17