jquery遍历table tr td内容

$("#result").find("tr").each(function () {
$(this).find("td").each(function () {
if ($(this).text().indexOf("惠") > 0) {
var m = $(this).text().toString();
$(this).css("width", "165px");
$(this).html(m + "<div style=‘background-color: #e4393c;color:white;width:20px;height:20px;line-height:20px;text-align:center;float:right;‘>促</div>");
}
});
});

jquery遍历table tr td内容,布布扣,bubuko.com

jquery遍历table tr td内容

上一篇:UIWebView页面的控制(二)


下一篇:Html:upload