0
Guys, how to replace paragraph text with variable value after using function in html?
I need the text of the paragraph to change to the value of the variable when the button is pressed
6 Réponses
+ 1
All the time I entered the name of the variable and not the id, so I am very grateful to you
0
What about <button onclick=...
0
I know about functions, I asked how to replace the text of a paragraph with the value of a variable
0
Then in script define variable and use it in onclick to innerHTML
0
Ok, thanks
0
You are welcome. Sometimes we programmers or coders need rest...