【发布时间】:2012-02-16 16:30:22
【问题描述】:
我有以下结构的表:
<table style=" margin-top: 10px; border: 1px wheat solid; width: 100%; font-size: 10px; font-family: Arial , Verdana;text-shadow:0px 1px 0px #000">
<tr class="infoRow" style="background:#666666; ">
<td>Element11 </td>
<td style="font-size:12px; font-weight:bold; font-family: georgia;">Element12 </td>
<td><input type="checkbox" class="check" /></td>
</tr>
<tr class="infoRow" style="background:#666666; ">
<td>Element21 </td>
<td style="font-size:12px; font-weight:bold; font-family: georgia;">Element22 </td>
<td><input type="checkbox" class="check" /></td>
</tr>
</table>
在检查 <input class="check" ... /> 属性 text-decoration 的值后,我想在下一行添加“下划线”。
$('.check').click(function(){
$('infoRow').css("text-decoration", "underline");
});
此代码更改所有行。
提前致谢。
【问题讨论】: