I want to remove dialog header in jQuery UI and add my close button. Close button is image, when user click image, dialog'll be closed. This my snippet:
$("#dialog-model").dialog({
create: function (event, ui) {
jQuery(".ui-dialog-titlebar").hide();
$("#dialog-model").css({ 'font-family': 'Helvetica', 'padding': '0', 'font-size': '12px' });
},
height: 500,
width: 900,
modal: true,
});
I try to add image in scipt but it doesn't work