G
Gordan
Hi.
i have a text area and would like to add some text to it when i click a
button so I put this code:
var txtarea = document.form.text;
txtarea.focus();
txtarea.value+="some text";
the problem is that this adds "some text" on the end of the text in my text
area
I want the "some text" after my cursor position
could you help me do that
thanks, Gordan
i have a text area and would like to add some text to it when i click a
button so I put this code:
var txtarea = document.form.text;
txtarea.focus();
txtarea.value+="some text";
the problem is that this adds "some text" on the end of the text in my text
area
I want the "some text" after my cursor position
could you help me do that
thanks, Gordan