<TR height=30 class="navPanel">
<th width="5%">序号<input type="checkbox" id="checked"
onclick="checkboxChange();" /></th>
<th width="10%">文件号</th>
<th width="10%">资产名称</th>
<th width="10%">资产编号</th>
<th width="10%">部门</th>
<th width="10%">拟制人</th>
<th width="10%">拟制时间</th>
<th width="10%">状态</th>
<th width="14%">操作</th>
</TR>
<tr title="${fileNo}" id="idcolor" class="details" bgColor="#eef2f7" height="25" onMouseOut="bgColor="#EEF2F7"" onMouseMove="bgColor="#E4EAF2"">
<td align="center"><input class="checkbox" name="checkbox" type="checkbox" value="${belongingsId}" onclick="checkboxItemChange(this);" /></td>
<td align="center">${fileNo}</td>
<td align="center">${belongingsName}</td>
<td align="center">${belongingsNo}</td>
<td align="center">${deptName}</td>
<td align="center">${accessUserName}</td>
例如 页面上产品编号有这么一串字符 hello word 本人要获取字符串中的D(d 是可变的) 判断d 并给予tr相应的颜色
问一下各位大神怎么实现 求赐教 求代码
解决方案
80
var tdValue=$("td.details:nth(3)").val();
if(tdValue. substring(tdValue.length-1,tdValue.length) =="d"){
$("td.details:nth(3)").css({"color":"blue"});
}
10
本人连题意都看不懂

10
本人还在理解题目是什么意思
