You answered your own question. What you're doing below should work, as
long as elTableRow is defined prior to that call. Sample:
<html><body>
<script type="text/javascript">
function test() {
var elTableRow = document.getElementById("somerow");
var elTableCells = elTableRow.getElementsByTagName("td");
alert(elTableCells[0].innerText);
}
</script>
<button onclick="test()">click me</button>
<table>
<tr id="somerow">
<td>cell 1</td>
<td>cell 2</td>
</tr>
</table>
</body>
</html>
"C" <C@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...
How do I get the text from my cell e..g. <td>Test Text</td>
var elTableCells = elTableRow.getElementsByTagName("td");
alert(elTableCells[0].innerText);