On a screen assume that there is a division..below that there is a button..on pressing the button, 1 should be printed in div.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

On a screen assume that there is a division..below that there is a button..on pressing the button, 1 should be printed in div..

How to do that in a very simple way??

20th Jul 2020, 7:35 AM
Adeeb Khan
2 Answers
+ 2
button.onclick=()=>{ div.innerHTML=1; }
20th Jul 2020, 7:38 AM
Abhay
Abhay - avatar