我有这个动态表:
<table id="monthProd" class="tableList">
<tr>
<td id="Th1" width="65px">
</td>
<asp:Repeater ID="rptTech" runat="server">
<ItemTemplate>
<th>
<asp:Label ID="techTitle" runat="server" Text='<%# Eval("sName") %>' techID='<%# Eval("iCodigo") %>'></asp:Label>
</th>
</ItemTemplate>
</asp:Repeater>
<th>
<asp:Label ID="capacidadeTitle" runat="server" Text="<%$ Resources:WebResources, Planning_DailyPlan_Total %>"></asp:Label>
</th>
</tr>
<asp:Repeater ID="rptClient" runat="server" OnItemDataBound="rptClient_ItemDataBound">
<ItemTemplate>
<tr>
<th>
<asp:Label ID="clientTitle" runat="server" Text='<%# Eval("sName") %>' customerID='<%# Eval("sCNPJ") %>'></asp:Label>
</th>
<asp:Repeater ID="rptValuesGerais" runat="server">
<ItemTemplate>
<td align="left">
<asp:TextBox ID="txtValue" runat="server" Text="0" onchange="changeTotal();"></asp:TextBox>
</td>
</ItemTemplate>
</asp:Repeater>
<td>
<asp:Label ID="lblValueTotal1" runat="server" Text="0"></asp:Label>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr>
<th>
<asp:Label ID="lblTotal" runat="server" Text="<%$ Resources:WebResources, Planning_DailyPlan_Total %>"></asp:Label>
</th>
<asp:Repeater ID="rptValuesFooter" runat="server">
<ItemTemplate>
<td>
<asp:Label ID="lblValueTotal2" runat="server" Text="0"></asp:Label>
</td>
</ItemTemplate>
</asp:Repeater>
<td>
<asp:Label ID="lblEndLine" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
现在当我用onchange事件改变一个值时,我需要将该行的所有值添加到该行的最后一个“lblValueTotal1”...我需要一个脚本来执行此操作,但我对javascript不太了解,所有尝试过的东西都不能给我 td 的确切值 =/
你可以在这里看到它: