Sorry for the vagueness of my question. Let me start from scratch.
I currently have this: http://jsfiddle.net/kmg4x/1/
and this other question I posted is related: https://stackoverflow.com/questions/5250728/alternative-to-jeditable-for-editable-table-cells
Although I eventually want to do away with the form on the top and make the cells editable, this question is primarily about changing the table contents as opposed to adding new cells.
As you can see, if you enter a single letter into the top left input box and click out, it appends the table with the remaining part of the array (after a `slice`). I would like instead for it to change the contents of the existing cells.
I have tried changing `cell.appendChild(document.createTextNode` to `innerHTML` but it ended up doing the exact same thing. My guess is that it has to do with changing the `var tbody = document.getElementById(id).getElementsByTagName("tbody");` to `var tbody = document.getElementById(id).getElementsByTagName("td");` but when i do that it just breaks.
Is there an `editCell()` equivalent of `tbody.insertRow(r)` Maybe `td.innerHTML(r)`?
Eventually I will add a button that can add and remove rows.
Hope this is better.