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
PHP Design Help
Is there a CChar function in VBA?
SCCM Advertisement complete but not posting back up
Recommended Cisco Router for 100Mb Ethernet Handoff from Cogent
Exporting Sql Tabel to Excel
DVD burner free software download
Parse Flat file...
Print black with Canon MP 640 having only black cartridges
Is there any way that we can initiate Windows update to run on the client by selecting express where the icon is ready for user interphase.
How do I chop off extra decimal places?