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?

1st Jul 2020, 4:56 PM
João Hoffman
João Hoffman - avatar
4 Respuestas
+ 1
Hmmmm ty
1st Jul 2020, 8:41 PM
João Hoffman
João Hoffman - avatar
+ 1
Your answer was of great help man, thanks
1st Jul 2020, 8:42 PM
João Hoffman
João Hoffman - avatar
0
I love you
1st Jul 2020, 6:37 PM
João Hoffman
João Hoffman - avatar
0
Does it have to be single quotes? And another, in place of something else, could I put a variable?
1st Jul 2020, 6:38 PM
João Hoffman
João Hoffman - avatar