With plain JavaScript:
// table is a reference to your table
table.rows[rowIndex].cells[columnIndex]
Reference: HTMLTableElement
, HTMLTableRowElement
With jQuery, you could use .eq()
:
$('#table tr').eq(rowIndex).find('td').eq(columnIndex)
// or
$('#table tr:eq(' + rowIndex + ') td:eq(' + columnIndex + ')')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…