I have this table:
<table>
<tr class="unique_1">
<td></td>
<td></td>
<td class="status_td"></td>
</tr>
<tr class="unique_2">
<td></td>
<td></td>
<td class="status_td"></td>
</tr>
<tr class="unique_3">
<td></td>
<td></td>
<td class="status_td"></td>
</tr>
<tr class="unique_4">
<td></td>
<td></td>
<td class="status_td"></td>
</tr>
</table>
Now I want to select <td class="status_td">
in <tr class="unique_3">
. The <tr>
's unique id is inside a variable.
What I have so far is:
$(trClass + '> .status_td').html('Some data');
trClass
contains the unique ID (.unique_3
)
But this doesn't work, does anyone have an solution for my problem?