here i am facing the problem when dynamically adding tables and add rows in them dynamically as well. here what i tried: https://jsfiddle.net/753ynxn3/`
$(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++;
    });
its working for with adding tables when i add 3rd table and click on add row in this table that is stuck.