$(document).ready(function(){
// Counter
var i = 1;
// Add a row.
$("#add-row").click(function(){
// Populate the existing "next" row.
$('#infotype'+i).html("<td><input type='text' class='form-control' placeholder='Information Type'></td><td><select class='form-control'><option>Limited Adverse Effect</option><option>Serious Adverse Effect</option><option>Catastrophic Adverse Effect</option></select></td><td><select class='form-control'><option>Limited Adverse Effect</option><option>Serious Adverse Effect</option><option>Catastrophic Adverse Effect</option></select></td><td><select class='form-control'><option>Limited Adverse Effect</option><option>Serious Adverse Effect</option><option>Catastrophic Adverse Effect</option></select></td></tr>");
// Append a new row to `tbody` in the DOM but not displayed in the UI.
$('#tab_logic').append('<tr id="infotype'+(i+1)+'"></tr>');
i++;
});
// Delete a row.
$(".delete-row").click(function(){
alert(this);
});
});