Sending text to textarea

Posted by user2536258 on Stack Overflow See other posts from Stack Overflow or by user2536258
Published on 2013-06-30T10:18:49Z Indexed on 2013/06/30 10:20 UTC
Read the original article Hit count: 253

Filed under:
|
|

I have a textarea that I would like to send a value to and I am using the following to achieve this..

<textarea style="width: 300px; height: 150px;" name="message"></textarea>

<a href="#updates" onclick="document.sendform.message.value='7'; return true;"style="color:white">Year 7</a>

This is working as expected however it also overwrites any text that is in the textarea already, is there any way I can achieve this without over writing the existing text in the textarea?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript