So I use document.form_name.input_cell.value to write to a form… What do I do to write to a table cell? <td> or just on the html page instead of being contained in the form?
@jsakalosJun 11.2007 — #So I use document.form_name.input_cell.value to write to a form... What do I do to write to a table cell? <td> or just on the html page instead of being contained in the form?[/quote] If you have: [code=html] <td id="myId"> [/code] you should be able to [code=php]
document.getElementById('myId').innerHTML = "your_text"; [/code] This works for sure for div's I haven't tried it for tds.
@JMRKERJun 11.2007 — #Worked great for me with this simple test: [code=php] <html> <head> <title>Table ID test</title> <script type="text/javascript"> function TDwrite() { var cell = 'RC'+document.getElementById('RCcell').value; var info = document.getElementById('RCinfo').value; document.getElementById(cell).innerHTML = info; } </script> </head>