$().find(($().children().text()
满足条件并改变行前景色
1
2
3
4
5
6
7
|
$(
"#grd"
).find(
"tr"
).each(
function
() {
if
($(
this
).children(
'td:eq(1)'
).text() ==
"满足的条件"
) {
$(
"#"
+
this
.id).css(
"color"
,
"#ff0000"
);
}
else
{
$(
"#"
+
this
.id).css(
"color"
,
"#696969"
);
}
});
|
转载于:https://blog.51cto.com/12879205/1921586