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
Place an image control on top of videodisplay coponent
Housing all servers off site
Delprof via gpo on client bootup
VPN connection conflict
Key Distribution Center (KDC) cannot find a suitable certificate
scanf not working. VS2008
Exchange 2007 contacts processing issue
Does Norton's Ghost 11.5 support Windows 7
Windows 2008 failover clustering
Connecting two subnets on a cisco switch