Microsoft
Software
Hardware
Network
Question : how to disable the Close button on jquery Dialog
i am using the below jquery function
function ShowAll(divToPopupID, titleID) {
if ($(divToPopupID).attr('Rea
dOnly') == true) {
$("#divResult").find("text
area").att
r("readonl
y", "readonly");
//button = $("#divResult").find("butt
on:contain
s('Close')
");
//button.unbind();
//button.addClass('ui-stat
e-disabled
');
}
$("#divResult").find("text
area").tex
t($(divToP
opupID).ht
ml());
$("#divResult").addClass("
ShowPanel"
);
$("#divResult").dialog({
width: 800,
autoOpen: false,
modal: true,
title: $(titleID).text(),
closeOnEscape: false,
buttons:
{
"Cancel": function() {
$(this).dialog("close");
},
"Close": function() {
$(divToPopupID).html($("#d
ivResult")
.find("tex
tarea").te
xt());
setTabDirty();//This is for invoking the save message ,if the user moves to another tab without saving data in current tab.
$(this).dialog("close");
$("#divResult").removeClas
s("HiddenP
anel");
}
}
});
$("#divResult").dialog("op
en");
}
When ever i am calling the $("#divResult").find("text
area").att
r("readonl
y", "readonly"); line i need to diable the 'Close ' button or hide .so that user can see only the cancle button.
Answer : how to disable the Close button on jquery Dialog
I think this make the button hidden
$('#CloseButtonID').
hide();
Random Solutions
Arabic text in grid view from SQL Server
vb.net and pl sql
jquery - gmaps
Can't find the Printer "Server Properties" in Windows 7
How to modify this javascript to open links in a new window?
Basic Authentication Box Is Displayed When You Log on to OWA 2003 with HTTP
Outlook Express Folders
how i can fine the fsextend.exe microsoft utility t download?
Sql Query
wireless adapter in ubuntu 9