知道rowIndex后怎么知道这个行的INNERHTML?
rowIndex
希望能得到一例子。谢谢
------解决方案--------------------Easy, L@_@K
<body>
<table id= "tabTest " border= "1 ">
<tr>
<td> 1 </td>
<td> 11 </td>
</tr>
<tr>
<td> 2 </td>
<td> 22 </td>
</tr>
<tr>
<td> 3 </td>
<td> 33 </td>
</tr>
</table>
<script type= "text/javascript ">
<!--
var oTable = document.getElementById( "tabTest ");
var rowIndex = 1;
var row = oTable.rows[rowIndex];
alert(row.innerHTML);
var cells = row.cells;
for (var i=0; i <cells.length; i++)
{
alert(cells[i].innerText);
}
//-->
</script>
</body>