modify cell content in dynamic table (jquery) -


Hello! I have a table, which is generated in a populated jquery with data from a record set. With the function I want to modify some cells from this table. How can I do it ...? Thanks! Some codes, maybe it helps:

 for  .... (i = 0; i & lt; nrInreg; i ++) {$ ("& lt; tr & gt; ; "). Attached ('& lt; Table ID =' BOD '+ + +' '& gt;' + headerTura + '& lt; tr class = "planifVtabel"> gt;' + '& lt; td class = "celulaCO" Gt; 'ptAfisare.data [i] .cod +'  '+' & lt; td style = "width: 170px; text-align: left;" & gt; '+' & Amp; nbsp; '+ ptAfisare.data [i] .Nume +' & amp; bsp. '+ PtAfisare.data [i] .Initiala +' + + ptAfisare.data [i] .Prinume + '& lt; / TD & gt; '+' & lt; td class = "celulaCO" & gt; '+ Zstart [11] + Zstop [11] +' & lt; / TD> '+' & lt; / tr & gt; ; & Lt; / table & gt; & lt; / tr & gt; '). AppendTo ("# listaMea");} ....  

I am in the same room, Modify some TD by putting new zerst [11] and jestop [11] I want a function for.

Enter an ID for each TD Which depends on some data in the record set, a solution may be to store the primary code in tr and then

  var locator = "#" + id + "Td: nth-child (" + ColumnIndex + ")";    $ 1 (locator) .text ('new text')  


Comments