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
Actionscript 2.0 combo box
How can I disable flash allowfullscreen?
How to make changes to a cisco switch configuration file
Using install script to get directory path of the installation
adding user to an existing AD group
Make email address UPN name for multi-domain forest
Check for nulls to stop the error - Nullable object must have a value
How to use an Echo Indigo IOx sound card in Ubuntu 10.04 Linux?
Schtasks.exe keeps executes every 30 seconds
jQuery Autocomplete with PHP / MySQL [PART 4 continued...]