+ 1

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!

13th Sep 2017, 1:05 PM
Greg D
Greg D - avatar
4 ответов
+ 8
here is the simpliest example you may like https://code.sololearn.com/WkFu0PqDX01Y/?ref=app for more you can see my last example for what you can do with DOM https://code.sololearn.com/Wk8Wgk17wM98/?ref=app
13th Sep 2017, 2:10 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 6
you are welcome , i am glad i could help
13th Sep 2017, 4:21 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 5
You can give an ID to that cell and with DOM put the result
13th Sep 2017, 1:15 PM
Daniel
Daniel - avatar
+ 2
thank you :)
13th Sep 2017, 4:16 PM
Greg D
Greg D - avatar