function onClickCheckboxRow(data) {
console.log(data);
}
function displayLine(data) {
$('#results').append(`
<tr>
<th scope="row">${importLines.length}</th>
<td><input class="checkbox" onchange = "onClickCheckboxRow(data)" type="checkbox"></td>
<td>${data[0]}</td>
<td>${data[2]}</td>
<td>${data[11]}</td>
<td id="status-${data[0]}"><b><span style="color: orange">PENDING</span></b></td>
</tr>
`);
}
function onClickCheckboxRow(data) {
$(".checkbox").change((e) => {
console.log(data, e);
});
}
function displayLine(data) {
$('#results').append(`
<tr>
<th scope="row">${importLines.length}</th>
<td><input class="checkbox" type="checkbox"></td>
<td>${data[0]}</td>
<td>${data[2]}</td>
<td>${data[11]}</td>
<td id="status-${data[0]}"><b><span style="color: orange">PENDING</span></b></td>
</tr>
`, onClickCheckboxRow(data));
}