Beginner here
See – http://www.w3schools.com/js/tryit.asp?filename=try_dom_tablerow_cells
In this example, when change content is pressed, new content is written in the cell on the top left. Would it be possible to alter it to the top right? If so, how?
Change the function
changeContent()to look something like this:Essentially you are changing the x[0].innerHTML (first cell it encounters) to x[1].innerHTML (second cell it encounters).