Click to See Complete Forum and Search --> : table cells as jvascript objects?
is it possible to do this?
i.e.
you write a function so when the user click a button, the contents of several table cells are changed.
if so how do you do this?
Khalid Ali
07-02-2003, 11:45 PM
yes,what you will need to do is get the references to any cells where value needs to be changed and then use cellReference.innerHTML = value
how do i get the cell references, can you give me an example?
brendandonhue
07-03-2003, 01:05 AM
<td id="cell1">
document.getElementById('cell1').innerText = "Blah"
sweet got it working now, thank you guys very much
brendandonhue
07-03-2003, 01:15 AM
Welcome