I have a from to add relationships to user, when user clicks on add button i am using jquery to add a new row of relative. i am doing this by using a jquery funciton called addRowIntoTab()
function addRowIntoTab() {
        var url = templates.family_details;
        generic_get(url, function (html) {
           // $('#family_details_row').append(html);
            $('.holder tr:last').after(html);
        });
    }
the code is working and i am able to populate a list of fields like below:
<tr>
<td>
<input type="text" name="textfield" id="textfield" value="Lorem Ipsum"></td>
  <td>
            <select>
                  <option value="daughter">Daughter</option>
                  <option value="Son">Son</option>
                  <option value="wife">Wife</option>
                  <option value="mother">Mother</option>
                  <option value="father">Father</option>
                  <option value="mil">Mil</option>
                  <option value="fil">Fil</option>
                  <option value="brother">Brother</option>
            </select>
  </td>
  <td>
  <input type="text" name="textfield" id="datepicker3" value="21/01/84"></td>
  <td class="last"><input type="text" name="textfield" id="textfield" value="32"></td>
</tr>
The problem i am facing now is input IDs are same for all form elements hence i am unable to serialize() and send it to ajax.
is there a whey to add these fields in a why each have a unique ID or differentiation?
Thanks in advance Max
 
    