ここで私は動的にテーブルを追加し、それらの行を動的に追加するときに問題に直面しています。私が試したここで何:私は3番目のテーブルを追加し、スタックしている。この表に追加行をクリックしたときにテーブルを追加するとのためのhttps://jsfiddle.net/753ynxn3/ `動的にテーブルを追加し、動的にそれらの行を追加するjQuery
$(document).on('click', "#add_row" + j, function() {
$(this).siblings('.appendHere').children('table').children('tbody').children('#addr' + j).html("<td>" + (j + 1) + "</td><td><input type='text' name='attribute0' placeholder='Attribute' class='form-control'/></td><td><input type='text' name='productId0' placeholder='Product Id' class='form-control'/></td>");
$(this).siblings('.appendHere').children('table').children('tbody').append('<tr id="addr' + (j + 1) + '"></tr>');
j++;
});
その作業。
ありがとう@Ashersそれはうまくいきます:) –