This may seem a little similar to my last question (Find td with specific text, and operate on the td right after that one?), but this is a different actually ..
I have a table like this, this time:
<table class="test">
<tr>
<td>Row 1</td><td>Text 1-1</td><td>Text 1-2</td> ...... <td>Text 1-n</td>
</tr>
<tr>
<td>Row 2</td><td>Text 2-1</td><td>Text 2-2</td> ...... <td>Text 2-n</td>
</tr>
<tr>
<td>Row 3</td><td>Text 3-1</td><td>Text 3-2</td> ...... <td>Text 3-n</td>
</tr>
<tr>
<td>Row 4</td><td>Text 4-1</td><td>Text 4-2</td> ...... <td>Text 4-n</td>
</tr>
<tr>
<td>Row 5</td><td>Text 5-1</td><td>Text 5-2</td> ...... <td>Text 5-n</td>
</tr>
</table>
Basically it has rows, and now it has an unlimited number of columns.
I need to right a td with a specific text, and then operate on ALL tds on its right. The text to find will always be from tds on the left most side, as it will be a row heading text.
So for example, I may want to find a td with text Row 3, and then I will need to append xyz to the texts of all tds on the right of this td (which contains text Row 3) ..
So in my example, all tds on the right of td containing Row 3 will have their texts changed:
Text 3-1 --> Text 3-1xyz
Text 3-2 --> Text 3-2xyz
.
.
.
Text 3-n --> Text 3-nxyz
How do I solve this one ?