Results 1 to 2 of 2

Thread: Writing text into a TEXTAREA control

  1. #1

    Thread Starter
    Lively Member Daniel McCool's Avatar
    Join Date
    Oct 2002
    Posts
    127

    Writing text into a TEXTAREA control

    How do I define the text displayed within a TEXTAREA control?
    Here is what I have....

    Code:
    eval("document.form.text.value = variable")
    The TEXTAREA control is named 'text' - although it doesn't have a 'value' value, so I'm not so sure how to use javascript to supply the control with the data I want..... Thanks.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Code:
    document.forms(0).boxname.value = "value"
    Works for me.
    My evil laugh has a squeak in it.

    kristopherwilson.com

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