I am new to jQuery. I want to dynamically add two text boxes with labels firstname and lastname on clicking the "Add" button.
<table border="0" cellspacing="2">
<tr><td style= "width:200px;" align="right">Name
<td>
<input type="text" id="current Name" value="" />
</td></td>
</tr>
<tr>
<td align="right">Test value</td>
<td>
<select id="test" style= "width:350px;">
</select>
</td>
</tr>
<tr>
<td align="right">datas</td>
<td>
<input type="button" id="add" value="Add" onclick="AddTables();"/>
</td>
</tr>
<tr>
<td style="height:3px" colspan="2"></td>
</tr>
<tr style="background-color: #383838">
<td></td>
</tr>
<tr>
</tr>
<tr>
</div>
</div>
</td>
</tr>
</table>
I have a limit on adding the text boxes. Maximum of 7. At the same way, is there also a way to delete the text boxes?