changing HTML text with JS commands | Sololearn: Learn to code for FREE!

0

changing HTML text with JS commands

Hello everyone, I would like to know how I change HTML text. For example, a <p id = "text"> blabla <p>, I would like to use this JS to change this "blabla" for some other text, how do I do this?

7/1/2020 4:56:31 PM

João Hoffman

7 Answers

New Answer

+1

Hmmmm ty

+1

Your answer was of great help man, thanks

0

I love you

0

Does it have to be single quotes? And another, in place of something else, could I put a variable?