Adding content onclick | Sololearn: Learn to code for FREE!


Adding content onclick

I have a <table> with 1 row, 2 columns. I made a button in the left cell that makes a random number (1-10) onclick. I'd like the result to appear in the other cell, but have no idea how :( Please help if you can!

9/13/2017 1:05:46 PM

Greg D

4 Answers

New Answer


here is the simpliest example you may like for more you can see my last example for what you can do with DOM


you are welcome , i am glad i could help


You can give an ID to that cell and with DOM put the result


thank you :)