如何使用jquery为gridview中的标签添加值 [英] how to add value to label which is in the gridview by using jquery
本文介绍了如何使用jquery为gridview中的标签添加值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<br />
<pre lang="xml"><ItemTemplate><br />
<asp:Label ID="lblname" runat="server" Text='<%# Bind("name") %>'></asp:Label><br />
</ItemTemplate></pre><br />
<br />
function fcheck(index) {
var index = index;
$("#gridstudent_lblname_" + index).text("changedata");
}
推荐答案
( #gridstudent_lblname _ + index).text( < span class =code-string> changedata);
}
("#gridstudent_lblname_" + index).text("changedata"); }
这个怎么样?
what about this??
function fcheck(index) {
var index = index;
( this )。find( #gridstudent_lblname _ + index).val( changedata);
}
(this).find("#gridstudent_lblname_"+index).val("changedata"); }
这篇关于如何使用jquery为gridview中的标签添加值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文