3
I have a textarea ( id='text'), which the user type his text freely (so far so good), at the end he clicks on a button that inserts a signature example: "Typed by so-and-so".
When it inserts this new text the old one is removed, I wish I could add the new text without removing the old one. Someone has some hint/help?
You can put the code you’re using?
– João Victor Gomes Moreira
Document.getElementById('text'). value; - :/
– Santiago Moreira
@Moreirasouza, could [Dit] your post and add your whole code, I believe the solution would be just a concatenation operator
+=
in the right place ;)– David
<textarea id="text"> text that has to stay tbm </textarea> the problem is that I have no idea how to do, I try to do so. Document.getElementById(text). value+"phrase that tbm will stay"; and not sure... miss the errors I’m by cell phone
– Santiago Moreira