我有一个表格,需要用jquery循环遍历里面所有文本框的内容,并将内容转成json字符串并发mvc后台 20
<tablewidth="200"border="1"id="tbl66"><tr><thscope="col">排名</th><thscope="col">名字</th...
<table width="200" border="1" id="tbl66">
<tr>
<th scope="col">排名</th>
<th scope="col">名字</th>
<th scope="col">类型</th>
<th scope="col">第一组</th>
<th scope="col">第二组</th>
<th scope="col">合计</th>
</tr>
<tr>
<td rowspan="3">1</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td rowspan="3">2</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td rowspan="3">3</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
</table> 展开
<tr>
<th scope="col">排名</th>
<th scope="col">名字</th>
<th scope="col">类型</th>
<th scope="col">第一组</th>
<th scope="col">第二组</th>
<th scope="col">合计</th>
</tr>
<tr>
<td rowspan="3">1</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td rowspan="3">2</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td rowspan="3">3</td>
<td rowspan="3"><input type="text" name="Name"></td>
<td>跪射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>卧射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
<tr>
<td>立射</td>
<td><input type="text" name="Group1"></td>
<td><input type="text" name="Group2"></td>
<td><input type="text" name="Subtotal"></td>
</tr>
</table> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询