1 Replies - 1538 Views - Last Post: 19 July 2010 - 10:09 AM

#1 Guest_braveheartvd*


Reputation:

modify cell content in dynamic table

Posted 19 July 2010 - 09:54 AM

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!
Is This A Good Question/Topic? 0

Replies To: modify cell content in dynamic table

#2 Guest_braveheartvd*


Reputation:

Re: modify cell content in dynamic table

Posted 19 July 2010 - 10:09 AM

View Postbraveheartvd, on 19 July 2010 - 08:54 AM, said:

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 +'" width="100%" border="1">'+ headerTura +
	'<tr class="planifVtabel">' + 
	'<td class="celulaCO" style="width:70px;">' + ptAfisare.data[i].Cod +'</td>'+
        '<td style="width:170px; text-align:left;">' + '&nbsp;' + ptAfisare.data[i].Nume + '&nbsp;' + ptAfisare.data[i].Initiala + '. ' + ptAfisare.data[i].Prenume +
        '</td>' + 
        '<td class="celulaCO" style="width:40px;">' + 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. 


Was This Post Helpful? 0

Page 1 of 1