前端:html、js、jquery,后端:php、thinkPHP
在前端网页中动态添加输入框,后端整理数据
1、前端HTML部分:
<table class="layui-table">
<thead>
<tr>
<th>项目</th>
<th>名称</th>
<th>
<button type="button" class="layui-btn layui-btn-xs layui-btn-primary" style="margin-right: 0;font-size:12px;" id="add_jscs_tr">添加</button>
</th>
</tr>
</thead>
<tbody id="jishucanshu_inputs">
{notempty name="$data.jishucanshu"}
{volist name="$data.jishucanshu" id='jscs1'}
<tr class="del operate">
<td><input type="text" name="jscs_one[]" {note