I have this table with some dependents information and there is a add and delete button for each row to add/delete additional dependents. When I click \"add\" button, a new
Hi I would do something like this:
var id = 4; // inital number of rows plus one
function addRow(){
// add a new tr with id
// increment id;
}
function deleteRow(id){
$("#" + id).remove();
}
and i would have a table like this:
Relationship Type
Date of Birth
Gender
Spouse
1980-22-03
female
Child
2008-23-06
female
Also if you want you can make a loop to build up the table. So it will be easy to build the table. The same you can do with edit:)