Jquery popup window without close button
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 ?
Please refer How to remove close button on the jQuery UI dialog?
Or how about Best way to remove the close button on jQuery UI dialog box widget?
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();
精彩评论