I am beginner in jquery..please help me ...this is my html code
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr class="data-contact-person">
<td>
<td>
<input type="text" name="l-name" class="form-control l-name01" /></td>
<td>
<input type="text" name="email" class="form-control email01" /></td>
<td>
</td>
</tr>
</tbody>
</table>
Here's a quick solution:
Also, I suggest you only have one Add button. You don't need to duplicate add buttons unless you need it.
You can try the following code: