Dear gurus, there is a sign when you click on a cell so that the value ( innerHTML
) fits into the form ( <input type="text" id="ΠΈΠ΄ΡΡΠ΅ΠΉΠΊΠΈ" ΠΈΠ»ΠΈ name="ΠΈΠ΄ΡΡΠ΅ΠΉΠΊΠΈ">
).
I have a column id
( <td id="ΠΈΠ΄">
) and an index <tr>
: ( row.sectionRowIndex
). There is a click handler, tell me the code to calculate the value and write it to the form. Thank you very much in advance.
The table is generated by the php principle and you can set the id
and <tr>
if this somehow helps.
Regards, Oleg.
Everything turned out to be much simpler:
document.getElementById(ΠΈΠ΄ ΡΠ°Π±Π»ΠΈΡΡ).rows[ΠΈΠ΄ td].cells[ΠΈΠ΄ tr].innerText
Good luck to all.