javascript对CheckBok进行排序怎么办,问题如下:
帮我解决如下一个问题,我也会给分的,不感激!!
一、问题:
1、当CheckBox被选中时,其后的TextBox将显示序号,序号从1开始编号....
2、当取消其中一个CheckBox时,将对CheckBox的序号进行重新排序,例如现在的排序是1,2,3,4,当取消序号为2的CheckBox时将重新排序,1变为1,3变为2,4变为3
二、页面:
<tr>
<td>
<asp:CheckBox ID="ckbCarType" runat="server" Text="机型" OnClick="setSequence(this)" /></td>
<td>
<asp:TextBox ID="txtCarType" runat="server" Width="20px"></asp:TextBox></td>
<td>
<asp:CheckBox ID="ckbGood" runat="server" Text="商品" OnClick="setSequence(this)" /></td>
<td style="width: 20px">
<asp:TextBox ID="txtGood" runat="server" Width="20px"></asp:TextBox></td>
&a
蓝山帝景
慕姐8265434
相关分类