日期:2014-05-17  浏览次数:20373 次

后台生成textbox 取值问题
本帖最后由 waCtr 于 2013-01-14 13:21:17 编辑
生成后的heml代码
下面是 在现有的文本框中输入3 点击增加  就生成了3行4列textbox
那么点击提交的时候这3行4列textbox值 我怎么取值呢?

<tr>
                <td colspan="8">
                    <input name="TextBox1" type="text" value="3" id="TextBox1" class="textbox" />
                    <input type="submit" name="Button1" value="增加" id="Button1" class="button" />&nbsp;&nbsp;
                    <input type="submit" name="txt_Add" value="数据提交" id="txt_Add" class="button" />
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <table id="TableUploadlayout" border="0">
<tr>
<td style="border-width:1px;border-style:solid;">
                        字段1
                            </td><td style="border-width:1px;border-style:solid;">
                        字段2  
                            </td><td style="border-width:1px;border-style:solid;">
                        字段3
                            </td><td style="border-width:1px;border-style:solid;">
                        字段4
                            </td>
</tr>
              <tr>
<td style="border-width:1px;border-style:solid;">
                <input name="tbxNameA1" type="text" id="tbxNameA1" /></td>
                <td style="border-width:1px;border-style:solid;">
         &nbs