February 10th, 2002, 09:17 PM
I wrote the following codes to check whether a table cell has a ID 'D1', but it doesnt work. ANyone got a solution?
var curr_row, curr_cell;
for (curr_row = 0; curr_row < oTable.rows.length; curr_row++)
oRow = oTable.rows[curr_row];
for (curr_cell = 0; curr_cell < oRow.cells.length; curr_cell++)
if (oRow.cells[curr_cell].ID == "D1")
<td ID="D1">cell 1</td>
February 10th, 2002, 09:41 PM
the above problem is solved by using ".id" instead of ".ID".