for (var i = 0; row = tableAppointment.rows[i]; i++) {
for (var j = 0; col = row.cells[j]; j++) {
//iterate through columns
//columns would be accessed using the "col" variable assigned in the for loop.
}
}
How to iterate over each row whose third cell has a rowspan attribute.
This will give you all of the
<tr>that have such an element in them:demo at http://jsfiddle.net/52aR2/1/