Re: Newbie question = how to add text to a textarea without deleting the previous text.
- From: GD <GD@xxxxxxx>
- Date: Thu, 28 Jun 2007 23:02:38 -0500
On Thu, 28 Jun 2007 19:44:34 -0700, RobG <rgqld@xxxxxxxxxxxx> wrote:
On Jun 29, 12:39 pm, GD <G...@xxxxxxx> wrote:
Newbie question = how to add text to a textarea without deleting the
previous text.
i'm trying to add text to a text area when a link is clicked (to
add<b><i> etc) without erasing the previously typed text.
i'm using this, but unfortunately i don't know how to make this append
the text rather than just chenge the text in the text area.(where
comments is the textarea name.
<A HREF="#" onClick="(document.forms[0].comments.value='<b></b>');
<... onclick="(document.forms[0].comments.value += '<b></b>');
thank you very much!!
is there any way that if i highlight some text the tags that i'm
adding would replace that highlighted text?
thanks again,
GD
.
- References:
- Prev by Date: Ajax 12152 error
- Next by Date: Re: Passing information from a document to a standard FORM
- Previous by thread: Re: Newbie question = how to add text to a textarea without deleting the previous text.
- Next by thread: Ajax 12152 error
- Index(es):
Relevant Pages
|