我是Jquery的新手,我有dyamic数据透视表的问题,tr> th.labelName,这里labelName是动态生成的,我必须改变与该特定labelName相关的所有td的颜色。我怎样才能做到这一点 ?谢谢
这是代码:
<table>
<tbody>
<tr></tr>
<tr></tr>
<tr>
<th class = "pvtRowLabel">Asia</th>
<td class = "pvtValue"> India</td>
<td class = "pvtValue"> Chaina</td>
<td class = "pvtValue"> Nepal</td>
<!--here i have to select td's based on the 'pvtRowlabel' value i.e "Asia" which is dynamically generated. -->
</tr>
</tbody>
</table>