+ 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!
4 Antworten
+ 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
+ 6
you are welcome , i am glad i could help
+ 5
You can give an ID to that cell and with DOM put the result
+ 2
thank you :)