change text in table cell using rowIndex and cellIndex

CIRAZY1155

New Member
I got index of a row. Column count is static so I know in which column to put what, but what I want is to be able using onclick event handler to change content in the specific cell. the element which has this onclick event applied is outside the table with all the text inputs that I want to copy contents from. a brief example\[code\]<table id="table1"><tr><td>SomeText</td><td>SomeOtherText</td></tr><tr><td>SomeText2</td><td>SomeOtherText2</td></tr></table><div id="box1"><form><input type="text" name="newText"/><input type="button" onclick="?" /> </form></div>\[/code\]
 
Back
Top