我希望当我点击+添加更多按钮时,它应该添加与第1行相同的元素,并且S.No应该增加......并且每行都有删除选项。在表中添加<tr>元素
<a href="" id="c" class="text-right">+add more</a>
<table class="table">
<thead>
<tr>
<th>S.No.</th>
<th>Name</th>
<th>Dose</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td style="width:80%">
<input id="1a" type="text" class="form-control">
</td>
<td style="width:80%">
<input type="number" class="form-control">
</td>
<tr>
</tbody>
</table>
的[添加表行jQuery中]可能的复制( HTTP:// stackoverfl ow.com/questions/171027/add-table-row-in-jquery) – 0X0nosugar