i have two text boxes that can be duplicated by clicking on add button using following code
Code
   
           Code:
Fine: 
 script:void(0);" id='anc_add' class="btn btn-green">Add Code
 script:void(0);" id='anc_rem' class="btn btn-red ">Remove Code
jquery code is

PowerShell
      
        $(document).ready(function () {  
               var cnt = 2;   
              $("#anc_add").click(function () {        
             $('#tbl1 tr').last().after(' Code:' + cnt + '

 Fine:' + cnt + '

');                     cnt++;                 });   
                $("#anc_rem").click(function () {   
                  if ($('#tbl1 tr').size() > 1) {
 $('#tbl1 tr:last-child').remove();
 }              
       else {
 alert('One row should be present in table'); 
                    }  
               });  
               var getval = $('input[data-type="number"]').val;    
         });
i want to get code and fine value from each textbox which may be one two so on and save them in a table
which have column as
Code
id Code  Fine