0
how can I change something?
fhe first thanks for interest.. my question is how can I change div's text? for example I got a button when I click button div a's text rising like "1 2 3 4 5 6" when it has 100 I want that div b's text write "1" and when it has 200 b's text write "2" how can I do that with on JS .. Thank you..
1 Antwort
0
You'd have to first create 2 divs and a button with an onclick function to count up. Then call the function in javascript with an increment onclick.
I have it on codepen here: https://codepen.io/ennydoc/pen/pooVZVQ
Fork and refactor the code.