Re: Newbie question = how to add text to a textarea without deleting the previous text.



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


.



Relevant Pages

  • Re: RichEdit syntax hilighting??
    ... It took about 71.9 seconds to search through the doc and highlight each XML tag blue. ... I am trying to highlight the entire contents of the control. ... So I am just walking the contents looking for the chars, and changing the font color on the value not the tags. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Problem with code in Firefox, works OK in Netscape 7.1
    ... Thank you very much for taking the trouble to reply in such detail. ... has allowed the script to complete, which was the main problem I was ... through the checker at http://validator.w3.org/ didn't highlight any ... but not with the tags). ...
    (comp.lang.javascript)
  • Re: macro to highlight text in carrots
    ... I need everything inside the carrots to be highlighted dark gray. ... In your example, it would be easiest to highlight everything, and then ... remove the highlight from the tags with a wildcard replacement: ... If you just want to highlight the innermost tags, ...
    (microsoft.public.word.vba.general)
  • Re: Problem with code in Firefox, works OK in Netscape 7.1
    ... through the checker at http://validator.w3.org/ didn't highlight any ... but not with the tags). ... Stephane Moriaux et son vieux Mac ...
    (comp.lang.javascript)
  • Re: Tag&Rename - adding composer?
    ... spewed forth these words of wisdom: ... >HIGHLIGHT the item. ... IOW, ... Checking a file is used for working with the tags. ...
    (microsoft.public.windowsxp.music)