AaronBratcher
12-28-2005, 02:37 PM
I have a function that goes down the list of rows in an HTML table and enters the row number into the first column. (because I have some moveUp/moveDown arrows that the user can click and i want to save new order)
here is my function that works on IE, but not on fireFox 1.5:
function reorderRows() {
var tbl = document.getElementById("tblList");
var count = 1;
for (var i=0; i<tbl.rows.length; i++) {
tbl.rows[i].cells[0].innerText = count;
count++;
}
}
Any ideas on why this isn't working on fireFox? Thanks.
here is my function that works on IE, but not on fireFox 1.5:
function reorderRows() {
var tbl = document.getElementById("tblList");
var count = 1;
for (var i=0; i<tbl.rows.length; i++) {
tbl.rows[i].cells[0].innerText = count;
count++;
}
}
Any ideas on why this isn't working on fireFox? Thanks.