Results 1 to 2 of 2

Thread: *RESOLVED* TextArea - Append

  1. #1

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    *RESOLVED* TextArea - Append

    Hi all,

    On a image click i have this javascript

    Code:
    <script language="javascript">
    	function smile(){
    	document.form1.message.value = 'blablahblah';
    	}
    
    </script>
    Now this inserts blahblahblah into the textarea but erases the textareas content!
    How can i get it to Append it to the end of the text area?

    thanks for any help!
    b

  2. #2

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Ignore i forgot about the + sign!

    heheh

    Answer for others:

    <script language="javascript">
    function smile(){
    document.form1.message.value+= 'blablahblah';
    }

    </script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width