日期:2014-05-16  浏览次数:20318 次

Jquery 修改<a href="#">测试</a>中的文字怎么么修改
比如在TABLE的一个TD中有<a href="#">测试</a>

我要修改里面的测试两个字,要怎么么修改,我用下面的代码一直不行,不知哪位能帮我一下谢谢!在线等!
$("#listda tr:eq(" + parseInt(index - 1) + ")").find("td:nth-child(2)").find("a").attr("title",newValue);
jQuery

------解决方案--------------------

$("#listda tr:eq(" + parseInt(index - 1) + ")").find("td:nth-child(2)").find("a").html(newValue);