Get data from textbox inside a table

Giganews Newsgroups
Subject: Get data from textbox inside a table
Posted by:  Simon (simon.gerho…@gmail.com)
Date: Wed, 14 Nov 2007

Hello,

how can i get data from this table:
<table>
    <tr><td>someText</td></tr>
    <tr><td>
            <input name="DataGrid1:_ctl2:textBox" type="text" value="someText"
id="DataGrid1__ctl2_textBox" style="width:140px;" />
    </td></tr>
</table>

for the first column I can use:
var column1 = table.rows[rowIndex].cells[0].childNodes[0].data;
and I get 'someText'

how can I get text from column2 ('someText2')?

Thanks

Replies