App/pgs/dienste/invite_add.js
2020-11-25 17:28:45 +01:00

9 lines
279 B
JavaScript

var count = 1;
function addInviteAddRow(row) {
var tableRef = document.getElementById('invite_add').getElementsByTagName('tbody')[0];
// Insert a row in the table at the last row
tableRef.insertAdjacentHTML('beforeend', row.replace(/###COUNT###/g, count));
count++;
}