Hi all,
I’m new at this forums, and I have a little problem that I hope some of you might be able to solve.
I want to add a predefined piece of text to a textarea but where the blinking cursor is, and not by the end of it.
I have the following:
[COLOR=blue]<IMG SRC=”grfx/smilie_01.gif” ALIGN=”absmiddle” onClick=”addSMILIE(‘[?]’)” STYLE=”cursor: hand;”>
This adds the [?] to the textarea fine, but always by the end, and not where the input cursor is, here’s the function I’m using:
[COLOR=blue]
function addSMILIE(code) {
document.frmPROPA.txtNEWS.focus();
document.frmPROPA.txtNEWS.value += (code);
}
How to add the text to the textarea but where the input blinking cursor is and not by the end of it?
Thanks.
These forums will parse 8) by the smile, so where you see a smile here is in fact 8)