03-23-2011, 12:06 AM
|
#2 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
It seems that you want that to be accomplished in the client side, using javascript. I know how to insert text, but I am not sure how to insert it where the cursor is at.
If you just want to insert it. here is some sample code :
javascript Code:
//add an id to the textarea with same as name also to button document.getElementById('addbld').onClick(function(){ var txtArea = document.getElementById('addpaste'); txtArea.value = textArea.value + '[bld]'; });
I am not an expert on javascript though. It has been a while.
|
|
|
|