HI! I have a table, generated dynamic in jquery populated with data from a recordset. With a function I want to modify some cells from this table. How can I do that…? Thank you!
Some code, maybe it helps:
....
for (i = 0; i < nrInreg; i++) {
$("<tr>").append('<table id="bod'+ i +'" >'+ headerTura +
'<tr class="planifVtabel">' +
'<td class="celulaCO">' + ptAfisare.data[i].Cod +'</td>'+
'<td style="width:170px; text-align:left;">' + ' ' + ptAfisare.data[i].Nume + ' ' + ptAfisare.data[i].Initiala + '. ' + ptAfisare.data[i].Prenume +
'</td>' +
'<td class="celulaCO">' + Zstart[11] + Zstop[11] +'</td>' +
'</tr></table></tr>').appendTo("#listaMea");
}
....
I want a function to modify some td like putting new Zstart[11] and Zstop[11], in the same cell.
Give each
tdan ID which depends on some data in the recordset. One solution could be to store the primary key in thetrand then useto locate and modify a specific cell.