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,412
  • 15
  • 57
  • 74

3 Answers3

1

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

Community
  • 1
  • 1
jebberwocky
  • 1,103
  • 2
  • 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,047
  • 8
  • 65
  • 149
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