<table>
<tr>
<th>序号</th>
<th id="qt_<?php echo $val['id'];?>">
数量</th><th>处理方式</th><th>采购处理备注</th>
<th><button class="btn btn-info addproduct" type="button" id="addproduct_1>添加处理条数</button></th>
<tbody id="productlists">
</tbody>
JQ代码为
$(".addproduct").click(function(){
table = '<td><input type="hidden" value="0" id="bad"/><input type="text" placeholder="" name="count[]" value="" id="coun"/></td>';
$("#productlists_"+id).before(table);
)}