First, you should call a form. In this case, I wrapped it in a table, although you could easily wrap it in any DIV.
Code:
<form name="form">
<table><tr>
<td>
<!-- Here's the link -->
<a href="#" onClick="javascript:textaddition();"></a>
</td>
<td>
<!-- Text box (adjustable with CSS or whatever) -->
<textarea name="input"></textarea></td>
</tr></table>
</form>
Then you're going to call it with some JavaScript
:
Code:
<script language="javascript" type="text/javascript">
function textaddition() {
var text = This value can be set to anything, even another textbox;
document.form.input.value += text;
}
</script>
I don't know, I didn't test it. Just wrote it now. But it should work.
Maybe someone else can make it better or something. Have other things to work on now. Would love to see the final result, however. I could use something like this eventually.