|
I am trying to make certain rows in a table readonly. Because of the way the data is written back to the database I can'u use the "disable" function. Here is what I have done so far:
function disableRow (rowIndex) {
var table = document.all.mainTable;
var rowVolume = eval("document.all['" + idVolumeRow + eval(rowIndex) + " ']");
if (table) {
for (var c=0; c < rowVolume.cells.length; c++) {
rowVolume.cells[c].style.backgroundColor = "#1AA047";
rowAttend.cells[c].disabled = true;
//rowAttend.cells[c].readOnly = true;
}
}
}
|
|
The first two lines in the for loop work (background color and diabled) but the readonly doesn't.
Does anyone know where I'm going wrong
|
|
|
|
|
|
|
|