47
rated 0 times
[
51]
[
4]
/ answers: 1 / hits: 55905
/ 13 Years ago, thu, april 28, 2011, 12:00:00
I have code in the following style :
<tr id=201461>
<td id=0A style=cursor:pointer onClick = ProcessTextBoxClick() value=Feb 23 2008>Feb 23 2008</td>
<td id=0B style=cursor:pointer onClick = ProcessTextBoxClick() value=Feb 25 2008>Feb 25 2008</td>
<td id=0C style=cursor:pointer onClick = ProcessTextBoxClick() value=Feb 28 2008>Feb 28 2008</td></tr><tr id=201460>
<td id=1A style=cursor:pointer onClick = ProcessTextBoxClick() value=47>47</td></tr>
I have some JQuery where I am getting the id of each row, and now I want to get each value in each td for each row. How do I do this?
var tbl = document.getElementById(tbl-1);
var numRows = tbl.rows.length;
for (var i = 1; i < numRows; i++) {
var ID = tbl.rows[i].id;
More From » jquery