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
The multi-part identifier could not be bound and Ambiguous column name in SQL Server 2008
Journaling for Exchange 2003
How do I uninstall Symantec Backup Exec 11d in Windows Server 2003??
Need to lock down SMTP traffic - Urgent!
ASP.NET: URLs with apostrophes throwing error on server but not in dev environment
jBoss is not picking up css changes
windows server 2003
Computer Case For EVGA 285GTX...
get selected (not all) checkboxes in jQuery
Visual Studio 2008 versus Expression Blend?