I have a form with two fields , such as phone , email , as shown below.

when I click the plus button, I want to add one additional text box in the form below the button. and I want to delete the text box by clicking the minus button.
dynamically add fields and set a unique name for them. I need this data to insert into a table.
my html code is shown below.
<div class="RegSpLeft"><input type="text" value="Phone"></div> <div class="RegSpRight"> <a href="#"><img src="images/plus.png"></a> <a href="#"><img src="images/minus.png"></a> </div>
source share