jquery code to add more and remove multiple input fields recursively
This code used to append more input fields and remove input fields recursively. div with input fields to add more and remove <div id="phone_number_form" class="hidden"> <p> Phone number : <input type="text" name="phone_number"> first name : <input type="text" name="firstname"> <input type="button" id="remove_phone_number" value="Remove"> </p> </div> <form> <p> <input type="button" value="Add phone number" id="add_phone_number"> </p> </form> css to hide the class hidden of div .hidden { display: none; } /* Bellow is completely unnecessary */ * { font-family: Arial; font-size: 13px; } javascript code with onlick to add more and remove input fields $(document).ready(function(){ var phone_number_form_index=0; $(...