How do I remove/hide the "Ok" button dynamically using jquery?
$('#dialog-save').dialog({
autoOpen: false,
modal: false,
draggable: true,
width: 275,
height: 175,
buttons: {
"Ok": function () {
$(this).dialog("close");
}
}
});
I was able to change the title using this code -
var saveDialog = $('#dialog-save');
saveDialog.dialog('option', 'title', 'Message');
Not sure how to remove the buttons. Thanks!