62,046
社区成员
发帖
与我相关
我的任务
分享
$(function(){
$("#DivTable").find("tbody:last").find("tr").bind("click", function() {
document.getElementById("<%=txt1%>").value = $(this).eq(0).html();
document.getElementById("<%=txt2%>").value = $(this).eq(1).html();
document.getElementById("<%=txt3%>").value = $(this).eq(2).html();
});
});
<asp:TextBox id="txt1" runat="server"></asp:TextBox>
<asp:TextBox id="txt2" runat="server"></asp:TextBox>
<asp:TextBox id="txt3" runat="server"></asp:TextBox>
<asp:GridView id="DivTable" runat="server"></...>