How do I add a value to the end of the text of a tag with a class using js?
Hello. I have a tag with a class price. How do I add letters to the end of the text of this tag. Is there some way to add letters to the end of the text of the price tag? I don't need innerHTML, because it completely overwrites the text, and I just need to add letters to the end of the text, and not overwrite the text.
I don't need innerHTML because it completely overwrites the text
Well, so you can read, add and overwrite with an already added line.Anonymous
просто добавлять ,а не перезаписыватьAnonymous
To place the code, please use CodePen or similar tool. Thanks you!